Django study notes --- Xadmin build

First, the environment, version

Django-2.2
python-3.6
PyCharm-2018.3

Second, download xadmin

Not recommended for use pip install xadmin direct installation, otherwise there will be a lot of the wrong version, it is recommended to log github, switching django2 branch direct download
https://github.com/sshwsfc/xadmin/tree/django2

III. Use pip install xadmin

pip install C:\Users\Me\Desktop\xadmin-django2.zip

IV. Configuring xadmin

1. In the project directory create folders extra_apps, and right --Mark Directory as - Sources Root, is set to project resource files

2. downloaded package (xadmin-django2) codecs, which xadmin copy files to the extra_apps

3. The introducing path in settings.py

4. Register xadmin (setting added in xadmin, crispy_forms)

The configuration of the access address xadmin in url.py

6. The data table generated xadmin

7. Generate super administrator

8. Display Chinese

V. access xadmin

http://127.0.0.1:8000/xadmin/

 

 

Published 35 original articles · won praise 61 · views 160 000 +

Guess you like

Origin blog.csdn.net/woailyoo0000/article/details/103812012