You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
报错内容:
new_errors = check(app_configs=app_configs, databases=databases)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/checks/caches.py", line 14, in check_default_cache_is_configured
if DEFAULT_CACHE_ALIAS not in settings.CACHES:
File "/opt/venv4archery/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr
self._setup(name)
File "/opt/venv4archery/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/opt/venv4archery/lib/python3.9/site-packages/django/conf/init.py", line 170, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/local/python3/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'archery.settings'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
docker 执行命令 python3 manage.py makemigrations sql 时 报错了 ,求大神帮助
报错内容:
new_errors = check(app_configs=app_configs, databases=databases)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/checks/caches.py", line 14, in check_default_cache_is_configured
if DEFAULT_CACHE_ALIAS not in settings.CACHES:
File "/opt/venv4archery/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr
self._setup(name)
File "/opt/venv4archery/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/opt/venv4archery/lib/python3.9/site-packages/django/conf/init.py", line 170, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/local/python3/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'archery.settings'
Beta Was this translation helpful? Give feedback.
All reactions