【发布时间】:2015-02-12 07:08:22
【问题描述】:
我对以下错误消息有疑问:
错误:“500 内部服务器错误”
在 apache2 上启动 django 项目。
APACHE2 配置文件:
<VirtualHost *:80>
ServerAdmin biisguzar@gmail.com
ServerName asistan.com
ServerAlias www.asistan.com
DocumentRoot /var/www/asistan
Alias /static/ /var/www/asistan/static/
WSGIScriptAlias / "/var/www/asistan/asistan/wsgi.py"
<Directory /var/www/asistan>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
DJANGO WSGİ.PY 文件:
import os,sys
sys.path.append('/var/www')
sys.path.append('/var/www/asistan')
sys.path.append('/var/www/asistan/asistan')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "asistan.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
页面 SS:
【问题讨论】:
-
您是否检查了 apache 错误日志以了解与此 Django 应用程序相关的异常?
标签: python html django apache ubuntu