ImportError: 从 django.conf 导入 DEFAULT_STORAGE_ALIAS 和 settings

huangapple go评论40阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年4月19日 17:02:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76052630.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定