🖥
#django ModuleNotFoundError: No module named 'django-extensions'
pip install するときは ハイフンじゃないですか
$ pip install django-extensions
でそれをそのまま設定に追加しますよね
INSTALLED_APPS = [
'django-extensions',
...
]
なんだよ!
$ ./manage.py shell_plus
Traceback (most recent call last):
File "./manage.py", line 21, in <module>
main()
File "./manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/Users/yumainaura/.pyenv/versions/3.7.3/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/Users/yumainaura/.pyenv/versions/3.7.3/lib/python3.7/site-packages/django/core/management/__init__.py", line 357, in execute
django.setup()
File "/Users/yumainaura/.pyenv/versions/3.7.3/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/yumainaura/.pyenv/versions/3.7.3/lib/python3.7/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/Users/yumainaura/.pyenv/versions/3.7.3/lib/python3.7/site-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/Users/yumainaura/.pyenv/versions/3.7.3/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'django-extensions'
アンスコでしたね
INSTALLED_APPS = [
- 'django-extensions',
+ 'django_extensions',
...
]
揃えて欲しい
うん。
Original by Github issue
チャットメンバー募集
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。
公開日時
2019-05-15
Discussion