1

我不断收到来自 django 的关于损坏的内部链接的电子邮件。

它们总是指向 internal_error.html。虽然没有显示错误。

任何人都知道我怎样才能找到这些错误的根源吗?

这是一个示例电子邮件:

推荐人: http ://www.example.com/subject/590/Philosophy/

请求的 URL:/subject//internal_error.html

用户代理:Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0

IP地址:xxx.xxx.xxx.xxx

4

2 回答 2

2

我联系了我的主人,他们说

由于您的站点超出了共享服务器上的内存限制,您的脚本已被我们的 Process Watcher 脚本自动杀死。

:(

于 2011-04-19T23:46:00.910 回答
0

你用的是fastcgi吗?

正如其中一个主题所写的那样,这个问题似乎会随着非常大或长的 apges 出现。一位用户说,启用 gzip 会有所帮助。

django-fcgi.py:

#!/usr/bin/python
from flup.server.fcgi_fork import WSGIServer
#from flup.server.fcgi import WSGIServer
from flup.middleware.gzip import GzipMiddleware

from django.core.handlers.wsgi import WSGIHandler

handler = WSGIHandler()
handler = GzipMiddleware(handler)
WSGIServer(handler).run()
于 2011-04-19T12:57:48.887 回答