from xadmin import views
1.修改頂部的django為自定義的標題琼牧,在users/adminx.py中,
#xadmin修改頂部django蔫仙, 修改底部公司
classGlobalSetting(object):
site_title ="大臉后臺管理系統(tǒng)"
site_footer ="大臉教育網(wǎng)"
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)