Get the App
SLTechnology News&Howtos  ›  Development  › 

Example Analysis of Django2.0 plus xadmin

Shulou Source: shulou.com Published: 2022-06-03 18:33:15 11月12日 Update

This article is about the sample analysis of Django2.0 plus xadmin. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

If it is django2.0, you must download xadmin2.0, otherwise many places are not compatible.

Xadmin2.0 download address

Https://github.com/sshwsfc/xadmin/tree/django2

And then download it to the local

Through pip install xadmin local addresses such as

The xadmin package is available at C:\ Users\ ASUS\ Desktop\ xadmin-django2.zip

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

The landlord directly copied the xadmin folder in the package to the project (recommended)

Import import xadmin files in url.py

Modify the mapped address of admin

Path ('xadmin/', xadmin.site.urls)

And then in the setting.py of django

INSTALLED_APPS plus

'xadmin',# load xadmin module' crispy_forms'

Then open run manaer.py Task under pycharm Tools

Enter makemigrations and then enter migrate

Xadmin is installed and click run.

If you reported an error like modelnotfound, you didn't add this package.

Because the landlord forgot to configure the virtual environment because it was a python rookie, many packages were added to the local environment one by one.

Keep in mind that you need a virtual environment

Thank you for reading! This is the end of this article on "sample Analysis of Django2.0 plus xadmin". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Address environment examples analysis content files more landlord article input good practical place finished that is folders articles modules see knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Xiaomi MySQL vpn OPPO Reno