How to add a custom section to the Django admin home page?

In the Django administrator, each application that you register with admin gets its own section. I want to add a custom section for reports not related to any application. How to do it?

+3
source share
2 answers

To add a non-application section, you will have to override the administrator index template. Create the admin / directory in the project templates directory and copy the django / contrib / admin / templates / admin / index.html file into it. Then you can add any markup for this file. The only drawback (unfortunately, there is no good way around it yet) is that if you update Django, you will need to keep track of any changes in this index.html file and copy these changes to your version as well.

+2
source

Here you will find: http://docs.djangoproject.com/en/dev/obsolete/admin-css/

This should take care of you: P

0
source

Source: https://habr.com/ru/post/1716345/


All Articles