Djang构建的奇怪url

2024-10-02 14:22:20 发布

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

在开发阶段(使用django1.9和Virtualbox with Linux),链接没有问题。在生产服务器中(Django 1.8.9用于支持fastcgi)链接不起作用。只显示打开的页面。链接如下所示: http://rationale.ee.klient.veebimajutus.ee/http%3A//rationale.ee.klient.veebimajutus.ee/about 在“找不到”页中,会写入以下消息: 请求URL:http://http://rationale.ee.klient.veebimajutus.ee/http:/rationale.ee.klient.veebimajutus.ee/news 当前URL,http:/理据.ee.klient.veebimajutus.ee/关于,与这些都不匹配。你知道吗

应该是安装问题。有什么提示吗?我该怎么办?为什么显示utf8符号?你知道吗


Tags: django服务器httpurl链接linuxwith页面
2条回答

请看that答案。可能您在django.contrib.sites.models.Site对象中包含了http://,但它必须是唯一的域。你知道吗

这是docs

这是一条漏线设置.py: 强制脚本名称=“” 之后一切正常

相关问题 更多 >