2010-05-25 56 views
0

我已經建立了我使用Django未處理的異常是由程序拋出

新網站起初一切進展順利的startApp,執行syncdb ......等

但問題的這個按摩

未處理的異常 應用程序拋出未處理的異常。

你可以看到 http://www.daqiqten.com/

這是我index.fsgi和.htacces

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

你有 'DEBUG' 在你的應用程序的設置是否打開?也許你會得到一些關於引發異常的更多信息。

+0

很好的建議。告訴我們你發現了什麼! – slezica 2010-10-12 01:20:33

相關問題