Hi,
I've searched the internet and come across a couple of pages
ostensibly showing how this is done, but even the django documentation
itself (sans being xampp-specific) has not met me with success.
I got to the point where I've installed mod_wsgi, set up the test app
but am struggling with the changes I need to make to http.conf. I've
done them but when I request a page, httpd.exe throws an error
complaining about it trying to load a library incorrectly. If I take
remove the bit I added to http.conf apache will work.
This is what I've added to my http.conf where testproject is the name
of my app.
#django specific stuff
<VirtualHost *:8080>
ServerAdmin [email protected]
ServerName localhost
ServerAlias localhost.com
<Directory c:/xampp/htdocs/testproject/apache>
Allow from all
</Directory>
#WSGIDaemonProcess www-data
#WSGIProcessGroup www-data
WSGIScriptAlias / c:/xampp/htdocs/testproject/apache/django.wsgi
</VirtualHost>
This is the contents of my django.wsgi
import os, sys
apache_configuration= os.path.dirname(__file__)
project = os.path.dirname(apache_configuration)
sys.path.append('c:/xampp/htdocs')
os.environ['DJANGO_SETTINGS_MODULE'] = 'testproject.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
The mod_wsgi I'm using I downloaded from
http://code.google.com/p/modwsgi/downloads/list
I don't see anything wrong?
Any helpful comments will be much appreciated,
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---