On Sep 2, 4:46 am, Jesse <adles...@gmail.com> wrote: > created project using startproject testproject > > Problems with apache_django_wsgi.conf > 1. Added following line to Apache: > LoadModule wsgi_module modules/mod_wsgi.so > > 2. Created folder c:/django/testproject/apache > > 3. Created file c:/django/testproject/apache/django.wsgi > // code starts > import os, sys > sys.path.append("/c:/django")
All your paths where you have '/c:' instead of just 'c:' are wrong to start with. > os.environ['DJANGO_SETTINGS_MODULE'] = 'testproject.settings' > > import django.core.handlers.wsgi > > application = django.core.handlers.wsgi.WSGIHandler() > // code ends > > 4. Apache starts and restarts. local host is original apache "It > works" > > 5. Created file c:/django/testproject/apache_django_wsgi.conf > //code starts > Alias /media/ /c:/django/testproject/media/ > > <Directory /c:/django/testproject/media> > Order deny,allow > Allow from all > </Directory> > > WSGIScriptAlias / /c:/django/testproject/apache/django.wsgi > > <Directory /c:/django/testproject/apache> > Order deny,allow > Allow from all > </Directory> > //code ends > > 6. Added following line to Apache http.conf > Include "c:/django/testproject/apache/apache_django_wsgi.conf" > > 7. Apache error, cannot restart. > > Any help is much appreciated. Does the Apache error log have anything in it? Which Apache version? Which Python version? Which mod_wsgi object did you grab, or did you compile from source code? Are you trying to run 64bit Windows? BTW, recommended to test first with a WSGI hello world program and not Django. See hello world example in: http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide Graham -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.