python manage.py:没有名为' admin_tools'

时间:2017-08-18 14:30:28

标签: python django migration

我试图在我的django项目上运行此命令:

python manage.py makemigrations --empty my_app_name

创建一个新的空迁移。

当我尝试在poweshell中运行此命令时,我收到此消息:

PS C:\Travail\workout\workout-backend\workout_rest> python manage.py makemigrations --empty record
Traceback (most recent call last):
  File "manage.py", line 17, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Users\Ben\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\core\management\__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "C:\Users\Ben\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\core\management\__init__.py", line 341, in execute
    django.setup()
  File "C:\Users\Ben\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\Users\Ben\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\apps\registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "C:\Users\Ben\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\apps\config.py", line 90, in create
    module = import_module(entry)
  File "C:\Users\Ben\AppData\Local\Programs\Python\Python35-32\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named 'admin_tools'

错误是:ImportError: No module named 'admin_tools' 我做错了什么?

我在Windows 10上使用VS2017开发我的Django应用程序。

修改

有点奇怪。当我运行pip freeze时,我得到了这个:

$ pip freeze
astroid==1.4.9
colorama==0.3.7
Django==1.10.3
isort==4.2.5
lazy-object-proxy==1.2.2
mccabe==0.6.1
pylint==1.6.5
six==1.10.0
wrapt==1.10.10

我不知道什么是包裹。在我的整个项目中,我没有提到astroid或mccabe。也不在site-package文件夹中,也不在INSTALLED-APP ...

0 个答案:

没有答案