Mark
Mark

Reputation: 19997

Django / WSGI blank page

I am trying to get Django to work together with Apache using WSGI. The problem is that it simply returns an empty page (200 OK or 203 not modified).

I can't find any error upon restarting or when accessing the page in either error.log or django-error.log. There is an entry in django-access.log though.

WSGIPythonPath /web/django/dtest/
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /web/django
    ServerName django.markv.nl
    <Directory />
        Options FollowSymLinks Includes
        AllowOverride All
    </Directory>
    WSGIScriptAlias /wsgi-scripts/ /web/django/dtest/dtest/wsgi.py
    LogLevel info
    ErrorLog ${APACHE_LOG_DIR}/django-error.log
    CustomLog ${APACHE_LOG_DIR}/django-access.log common
</VirtualHost>

Any clues what the problem is or where I can find an error? It's probably something trivial but I fail to find it...

Upvotes: 0

Views: 485

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 600026

You're serving your application at /wsgi-scripts/, which seems an odd thing to do, so you'll need to go to that URL to see it.

Note that you absolutely certainly do not want to set your DocumentRoot to the location of your Django files, although this is not the source of your problem.

Upvotes: 1

Related Questions