【发布时间】:2013-02-10 12:08:06
【问题描述】:
OSQA 有问题。任何时候,我尝试进入用户页面,都会出现“500错误”,例如:http://turkrusforum.com/users/2/mertnuhoglu/
我检查了错误日志。但是那里什么都没有。我想安装django-debug-toolbar 并更多地调试问题。
我将DEBUG = True 和INTERNAL_IPS 放入settings.py。但是我还是看不到调试工具栏。
Here 表示在 Apache 下,这个问题可能与 Alias 设置有关。
这是我的httpd.conf 文件中的VirtualHost 定义:
<VirtualHost *:26903>
ServerName turkrusforum.com
KeepAlive Off
WSGIDaemonProcess turkrusforum.com processes=1 python-path=/home/mertnuhoglu/webapps/otrf:/home/mertnuhoglu/webapps/otrf/osqa:/home/mertnuhoglu/webapps/otrf/lib/python2.6 threads=1 inactivity-timeout=360 display-name=[wsgi-otrf]httpd
WSGIProcessGroup turkrusforum.com
WSGIScriptAlias / /home/mertnuhoglu/webapps/otrf/otrf.wsgi
</VirtualHost>
谁能帮我找出如何配置别名设置?
【问题讨论】:
-
您的 INTERNAL_IPS 设置是什么样的?
标签: django apache osqa django-debug-toolbar