This is probably very simple. But I think I'm too new to WSGI and Django to get it on my own. I have a new brilliant Django project on an Ubuntu virtual machine hosted in / var / www / mysite. The project was created using
django-admin startproject mysite
I am following the WSGI tutorial to configure it, so I created a folder. / apache inside which I placed this file, django.wsgi:
import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = '/var/www/mysite/mysite.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
Then I added this configuration line to the Apache configuration:
WSGIScriptAlias / /var/www/mysite/apache/django.wsgi
When I try to get to the site, nothing returns. The connection just freezes. This is in my access.log:
192.168.2.116 - - [15/Aug/2010:14:09:02 -500] "GET / HTTP/1.1" 500 639 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
So he gets to the site. But someone does nothing. There are no errors in error.log.
Does anyone have any ideas?
source share