新功能说明
- 用户自定义首页仪表盘及小部件布局及内容
- 数据图表展示
- 数据导出,可导出文件:EXCEL,CSV,XML,JSON
- inline即时数据编辑
- 页面定时刷新
问题及规避方法
- 存在用户修改密码页面BUG,所以,请务必记得自己的密码,请务必记得自己的密码,请务必记得自己的密码
#后台用xadmin替换时报错TEMPLATE_CONTEXT_PROCESSORS在setting中不存在,TEMPLATE_CONTEXT_PROCESSORS在setting需要手动添加
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.auth'
'django.core.context_processors.debug',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.core.context_processors.tz',
'django.contrib.messages.context_processors.messages',
'learn_models.context_processors.test',
)
#xadmin.sites源码报错提示部分
def check_dependencies(self):
"""
检查运行xadmin需要的包是否已经正确安装
默认情况下会检查 *ContentType* 模块是否已经正确安装
"""
from django.contrib.contenttypes.models import ContentType
if not ContentType._meta.installed:
raise ImproperlyConfigured("Put 'django.contrib.contenttypes' in "
"your INSTALLED_APPS setting in order to use the admin application.")
if not ('django.contrib.auth.context_processors.auth' in settings.TEMPLATE_CONTEXT_PROCESSORS or
'django.core.context_processors.auth' in settings.TEMPLATE_CONTEXT_PROCESSORS):
raise ImproperlyConfigured("Put 'django.contrib.auth.context_processors.auth' "
"in your TEMPLATE_CONTEXT_PROCESSORS setting in order to use the admin application.")