xadmin激活主题功能

  • A+
所属分类:Django框架

激活主题功能

class BaseSetting(object):

enable_themes = True

use_bootswatch = True

针对所有的修改

class GlobalSettings(object):

site_title = '暮梅后台管理系统' # 修改左上角title

site_footer = '暮梅在线教育网' # 修改底部title

menu_style = 'accordion' # 左侧导航栏收起来

绑定views注册BaseSetting,GlobalSettings

from xadmin import views

xadmin.site.register(views.BaseAdminView,BaseSetting)

xadmin.site.register(views.CommAdminView,GlobalSettings)

  • 微信
  • 等你哟
  • weinxin
  • 微信公众号
  • mac软件资源等你来拿
  • weinxin
小羊同学

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: