You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
按照提示,叫我们设置DJANGO_SETTINGS_MODULE的环境变量,实际上经过查看,是设置了的
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myDjangoWeb.settings')
解决方法,在manager.py添加如下代码
from django.conf import settings
settings.configure(DEBUG=True)
爆款云服务器s6 2核4G 低至0.46/天,具体规则查看活动详情