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")
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.
Jesse
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment