xadmin左侧边栏显示中文配置

app名:sysmonitor

sysmonitor/apps.py

#_*_ coding:utf-8 _*_
from __future__ import unicode_literals

from django.apps import AppConfig


class SysmonitorConfig(AppConfig):
    name = 'sysmonitor'
    verbose_name = u"网站监控"

sysmonitor/__init__.py

default_app_config = "sysmonitor.apps.SysmonitorConfig"

 

posted @ 2020-03-06 17:53  reblue520  阅读(477)  评论(0编辑  收藏  举报