How can I create custom page for django admin?

后端 未结 5 1561
日久生厌
日久生厌 2020-12-13 02:28

I want to create custom page for admin panel without model. For first i copy index.html to project folder:

mysite/
    templates/
        admin/
                     


        
5条回答
  •  情深已故
    2020-12-13 03:23

    Here's an example of everything that should be needed (as of Django 1.6) for a custom admin page that is linked to from a button next to the "History" button in the top right of an object's detail page:

    https://gist.github.com/mattlong/4b64212e096766e058b7

提交回复
热议问题