【发布时间】:2014-04-14 03:16:07
【问题描述】:
我正在尝试使用 apache 网络服务器运行我的 django 项目。
我收到以下错误:
Errors : The included urlconf hastahane.urls doesn't have any patterns in it`
如果我使用 django 开发服务器运行我的项目,则没有任何错误。
你有什么想法吗?
【问题讨论】:
-
请贴回溯及相关代码行
我正在尝试使用 apache 网络服务器运行我的 django 项目。
我收到以下错误:
Errors : The included urlconf hastahane.urls doesn't have any patterns in it`
如果我使用 django 开发服务器运行我的项目,则没有任何错误。
你有什么想法吗?
【问题讨论】:
您应该检查DEBUG 设置是否设置为False,并且您已正确填写ALLOWED_HOSTS 列表(see the docs)。
另外,您使用的是 django-debug-toolbar 吗?在这种情况下,这可能是错误的原因。检查this answer。
【讨论】: