# def get_urls(self):
# urls = super().get_urls()
# my_urls = [
# path('home_page/', self.admin_site.admin_view(self.my_view, cacheable=True)),
# ]
# return my_urls + urls
#
# def my_view(self, request):
# app_list = self.admin_site.get_app_list(request)
#
# context = {
# **self.admin_site.each_context(request),
# 'title': self.admin_site.index_title,
# 'subtitle': None,
# 'app_list': app_list,
# **({}
# ),
# }
#
# request.current_app = self.admin_site.name
#
# return TemplateResponse(request, 'admin/home_page.html', context)
django-admin 动态增加路由
原创Aqq_1024 ©著作权
文章标签 html javascript 文章分类 代码人生
上一篇:KubeSphere操作指南
-
基于Django-admin实现stark组件
stark组件 admin url的分发 表单数据 表头
stark 组件 admin