应用程序抛出了未处理的异常
我用DjANGO创建了我的新网站。
一开始一切都很好,startapp、syncdb……等等。
但是出现了一个问题,就是这个提示:
未处理的异常
应用程序抛出了一个未处理的异常。
你可以查看这个链接: http://www.daqiqten.com/
这是我的index.fsgi和.htaccess文件:
index.fcgi
#!/usr/bin/python
import sys, os
# Add a custom Python path. (optional)
sys.path.insert(0, "/home/daq")
# Switch to the directory of your project.
os.chdir("/home/daq/newproject")
# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "newproject.settings"
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
___________
.htacces
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.fcgi/$1 [QSA,L]
1 个回答
1
你在应用的设置里有没有开启'调试'模式?这样可能会让你看到更多关于发生的错误的信息。