When Django renders admin/base_site.html, this template language will be evaluated to produce the final HTML page, just like we saw in Tutorial 3. Note that any of Django’s default admin templates can be overridden.
Jag har problem med att få Django att ta tag i mina statiska filer Relevant modell: -templates (html for admin site) -migrations -templates -admin base_site.html
We'll use Django to model and prepare the data and then fetch it asynchronously from our template using AJAX. Finally, we'll look at how to create new Django admin views and extend existing admin templates in order to add custom charts to the Django admin. The Django framework comes with a powerful administrative tool called admin.You can use it out of the box to quickly add, delete, or edit any database model from a web interface. But with a little extra code, you can customize the Django admin to take your admin capabilities to the next level. Overriding templates¶.
Jag har lagt base_site.html till Om du själv gör kundanpassningen låter Django perfekt för detta. Detta hanterar skalning (plocka bara i en ny base_site.html-mall, få alla dina andra att ärva The Web framework for perfectionists with deadlines. - django/django. django / django / contrib / admin / templates / admin / base_site.html Go to file Go to file T; I edited base_site.html to change text "Django site admin" to "My site admin".