Django admin, section without “model”?

后端 未结 2 1626
耶瑟儿~
耶瑟儿~ 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.

提交回复
热议问题