Ich habe vor kurzem ein Repo von GitHub gezogen, um eine lokale Kopie auf meinem Rechner zu erhalten. Das Backend verwendet Django und ich arbeitete an der Aktualisierung einiger Modelle. Da ich einige Modelle geändert habe, wollte ich ./manage.py makemigrations
laufen lassen. Zuerst gab es ein Problem mit Python2 vs Python3, also änderte ich die #!/usr/bin/env python
zu #!/usr/bin/env python3
. Dann, wenn ich makemigrations lief ich diese:Django INSTALLED_APPS nicht installiert und Makemigrationen verhindert
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/core/management/__init__.py", line 341, in execute
django.setup()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/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 'autofixture'
ein bisschen weiter Sehen, fand ich heraus, dass dies, weil meine settings.py
Datei hat autofixture
, bootstrap3
und formtools
in INSTALLED_APPS
, aber irgendwie hat meine Maschine nicht haben jene. Ich habe versucht, alle pip install
, aber die Namen AutoFixtion, Bootstrap3 und FormTools sind nicht in Pip gefunden.