django之xadmin

安装

pip install xadmin

在setting下增加APPS ,

"xadmin", "crispy_forms",
看好这个crispy_forms是下划线

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'users',
    'courses',
    'organization',
    'operation',
    "xadmin",
    "crispy_forms",
]

修改urls.py

from django.conf.urls import url
from django.contrib import admin
import xadmin

urlpatterns = [
    url(r'^xadmin/', xadmin.site.urls),
]

屏蔽以前app内的admin.py

posted on 2018-12-27 22:21  神秘藏宝室  阅读(143)  评论(0编辑  收藏  举报

 >>>转载请注明出处<<<