makemigrations出错了,我用的是django2.2.6,请问怎么解决
来源:8-2 更加强大的后台管理系统-xadmin的配置
YZLZ
2019-10-21
Failed to get real commands on module "MxOnline": python process died with code 1: Traceback (most recent call last):
File "D:\study\pychram-2019.1.4\PyCharm 2019.1.4\helpers\pycharm\_jb_manage_tasks_provider.py", line 25, in <module>
django.setup()
File "D:\study\pychram-2019.1.4\project\Message\venv\lib\site-packages\django\__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "D:\study\pychram-2019.1.4\project\Message\venv\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "D:\study\pychram-2019.1.4\project\Message\venv\lib\site-packages\django\apps\config.py", line 90, in create
module = import_module(entry)
File "D:\study\python-3.6.7\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'crispy_forms '
2回答
-
bobby
2019-10-22
先安装一下依赖包 pip install django-crispy-forms
00 -
YZLZ
提问者
2019-10-21
???00
相似问题