Seeting 增加:
INSTALLED_APPS = [
# 'django.contrib.admin', 注释掉原来的
'xadmin',
'crispy_forms',
'reversion'
]
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
)
URL配置
from django.conf.urlsimporturl
import xadmin
urlpatterns=[
url(r'^xadmin/',xadmin.site.urls),
]
同步数据库
创建超级管理员账号
打开连接:
http://127.0.0.1:8000/xadmin/
参考文档
http://www.cnblogs.com/shhnwangjian/p/6372503.html
网友评论