from xadmin import views
1.修改顶部的django为自定义的标题,在users/adminx.py中,
#xadmin修改顶部django, 修改底部公司
classGlobalSetting(object):
site_title ="大脸后台管理系统"
site_footer ="大脸教育网"
menu_style ="accordion"
2.xadmin能修改主题
#xadmin能修改主题
classBaseSetting(object):
enable_themes =True
use_bootswatch =True
注册这两个class
xadmin.site.register(views.BaseAdminView, BaseSetting)
xadmin.site.register(views.CommAdminView, GlobalSetting)