In the Django admin each app you have registered with the admin gets its own section. I want to add a custom section for reporting that isn't associated with any app. How do I do that?
Asked
Active
Viewed 6,765 times
1 Answers
6
To add a section not associated with an app, you'll have to override the admin index template. Create an admin/ directory in your project templates directory, and copy the file django/contrib/admin/templates/admin/index.html into it. Then you can add whatever markup you want to this file. The only downside (unfortunately there's no good way around it at the moment) is that if you upgrade Django, you'll have to be on the lookout for any changes to that index.html file, and copy those changes over into your version as well.

Carl Meyer
- 122,012
- 20
- 106
- 116
-
2There is way to extend `index.html` without copying everything, look at [this answer](http://stackoverflow.com/a/7475745/1211429). Thank you anyway; probably the `apptemplates` package was not available in '09. – Joseph Victor Zammit Jun 11 '14 at 17:06