处理敏感密钥djang

2024-05-28 19:10:25 发布

您现在位置:Python中文网/ 问答频道 /正文

操作系统:Win 8.1 系统:surface pro 3 python 2.7.9 博士后:9.3 django 1.7.1款

我正在尝试完成终极Django教程:https://ultimatedjango.com/learn-django/lessons/handling-sensitive-keys/?trim=yes

在敏感密钥部分,当我使用python运行服务器时,它给出了以下错误管理.py运行服务器

CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False.

然后在设置.py我说: 允许的主机=['*']

当我再次运行服务器时,会出现以下错误: 正在执行系统检查。。。在

^{pr2}$

有什么帮助吗?在


Tags: djangopyhttpscom系统错误教程surface

热门问题