Adding reports to Django's admin -


I want to add an additional set of pages to my auto-generated admin site. I want to present a report from my model and also want to make some logs around it. Real creation is not a problem.

How do I:

  1. Make it an admin page like report output with breadcrumbs, similarly formatted tables, etc.?
  2. Register the scene, before the page appears?
  3. In the above answer question 2, at least did not know directly ... admin The way to "hack" your custom view to show as the first page of it is to override it in urlconf:

      (r 'admin / $ ', My.custom.admin.homepage),  

      (r' ^ admin / ', admin.site.root),  

    The "correct" way of doing this, however, is to make a custom example of AdminSite to your administrator and in Override dex_template settings.


Comments