初始化的时候报错。老师帮忙看看?

来源:1-1 课程导学

weixin_慕前端3579615

2021-10-23

(venv) D:\python\djangoProject1>python manage.py createsuperuser
Traceback (most recent call last):
File “D:\python\djangoProject1\manage.py”, line 21, in
main()
File “D:\python\djangoProject1\manage.py”, line 17, in main
execute_from_command_line(sys.argv)
File “D:\python\xxxshop\venv\lib\site-packages\django\core\management_init_.py”, line 381, in execute_from_command_line
utility.execute()
File “D:\python\xxxshop\venv\lib\site-packages\django\core\management_init_.py”, line 357, in execute
django.setup()
File “D:\python\xxxshop\venv\lib\site-packages\django_init_.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “D:\python\xxxshop\venv\lib\site-packages\django\apps\registry.py”, line 122, in populate
app_config.ready()
File “D:\python\djangoProject1\extra_apps\xadmin\apps.py”, line 14, in ready
self.module.autodiscover()
File “D:\python\djangoProject1\extra_apps\xadmin_init_.py”, line 49, in autodiscover
register_builtin_plugins(site)
File “D:\python\djangoProject1\extra_apps\xadmin\plugins_init_.py”, line 42, in register_builtin_plugins
[import_module(‘xadmin.plugins.%s’ % plugin) for plugin in PLUGINS if plugin not in exclude_plugins]
File “D:\python\djangoProject1\extra_apps\xadmin\plugins_init_.py”, line 42, in
[import_module(‘xadmin.plugins.%s’ % plugin) for plugin in PLUGINS if plugin not in exclude_plugins]
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\importlib_init_.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “

(venv) D:\python\djangoProject1>

django2.2
python3.9
已安装包:
pip install django==2.2
pip install djangorestframework
pip install django-import-export
pip install markdown
pip install django-filter
pip install psycopg2
pip install pillow
pip install django-crispy-forms
pip install django-reversion
pip install django-formtools
pip install future
pip install httplib2
pip install six
pip install xlwt
pip install xlsxwriter
pip install social-auth-core
pip install requests

写回答

1回答

weixin_慕前端3579615

提问者

2021-10-24

无需处理了。

用django3开始搭建xadmin 真的是头大。建议老师能直接给一个django3版本的后台。

0
1
bobby
https://github.com/search?q=django3+xadmin&type= 可以这里找一个
2021-10-25
共1条回复

Python前后端分离开发Vue+Django REST framework实战

Django REST framework课程视频,RESTFul API前后端分离开发

2873 学习 · 2457 问题

查看课程