Django admin, section without “model”?

后端 未结 2 1627
耶瑟儿~
耶瑟儿~ 2021-02-14 12:16

in the Django administration console, all section (menu links) come from models with database tables, but what would I need to do if I need a section without a corresponding mod

相关标签:
2条回答
  • 2021-02-14 12:47

    It looks like you want to add new admin urls with your own customized views and template: django.contrib.admin.ModelAdmin.get_urls

    You can construct those new admins without a new model this way.

    0 讨论(0)
  • 2021-02-14 12:55

    I did it with Proxy Models....

    0 讨论(0)
提交回复
热议问题