英文:
ImportError: from django.conf import DEFAULT_STORAGE_ALIAS, settings
问题
I'm trying to run my Django app on a local server, and instead, I'm getting this error: ImportError, cannot import name 'DEFAULT_STORAGE_ALIAS' from 'django.conf'.
英文:
am trying to run my django app on local server and instead am getting this error: ImportError, cannot import name 'DEFAULT_STORAGE_ALIAS' from 'django.conf'
答案1
得分: 1
我遇到了同样的问题,
所以我重新安装了我已经正常使用过的 Django 4.1 版本。
1. pip uninstall django
2. pip install django==4.1
英文:
I faced the same problem,
so I reinstalled the Django 4.1 version that I've worked with properly.
1. pip uninstall django
2. pip install django==4.1
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论