Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Django2.0 plus xadmin

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

  • How to realize the escape of greater than less sign by myBatis

    This article mainly introduces myBatis how to achieve greater than less than sign escape, the article introduces in great detail, has a certain reference value, interested friends must read it! Escape

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report