【问题标题】:Django won't start on apache webserverDjango 不会在 apache 网络服务器上启动
【发布时间】:2014-04-14 03:16:07
【问题描述】:

我正在尝试使用 apache 网络服务器运行我的 django 项目。

我收到以下错误:

Errors : The included urlconf hastahane.urls doesn't have any patterns in it`

如果我使用 django 开发服务器运行我的项目,则没有任何错误。

你有什么想法吗?

【问题讨论】:

  • 请贴回溯及相关代码行

标签: django apache


【解决方案1】:

您应该检查DEBUG 设置是否设置为False,并且您已正确填写ALLOWED_HOSTS 列表(see the docs)。

另外,您使用的是 django-debug-toolbar 吗?在这种情况下,这可能是错误的原因。检查this answer

【讨论】:

    猜你喜欢
    • 2020-02-06
    • 2015-09-02
    • 2016-09-05
    • 1970-01-01
    • 1970-01-01
    • 2012-07-31
    • 1970-01-01
    • 1970-01-01
    • 2015-12-19
    相关资源
    最近更新 更多