xadmin安裝:python
1.pip安裝:pip install xadmin git
2.手動安裝:github網址:https://github.com/sshwsfc/xadmingithub
安裝中可能會出現報錯: django
執行如下命令:ssh
pip install --upgrade setuptoolsurl
python -m pip install --upgrade piporm
pip 安裝pip install xadmin依然報錯以下,則使用手動安裝: blog
手動下載安裝包,修改報錯文件後綴爲txt,steup.py中加載的對應文件名,再執行 pip install xadmin-master.zip進行手動安裝:ip
xadmin使用:get
seetings.py:
INSTALLED_APPS = [ ...... 'xadmin', 'crispy_forms', ]
urls.py:
from django.conf.urls import url from django.contrib import admin import xadmin urlpatterns = [ # url(r'^admin/', admin.site.urls), url(r'^xadmin/', xadmin.site.urls), ]