Skip to content Skip to sidebar Skip to footer

Django, Apache And Mod_wsgi

I am trying to deploy an Apache webserver with a Django installation. I have installed Apache 2.2.25 (is working) and mod_wsgi 3.5. In my error log I get [Sun Oct 05 10:09:10 2014]

Solution 1:

The problem was that the correct way to create the wsgi app was edited between django 1.6 and 1.7 to

from django.core.wsgi importget_wsgi_applicationapplication= get_wsgi_application()

Now it works in both python 2.7 and python 3.4

Solution 2:

It seems to be related with the version of python.

https://www.pythonanywhere.com/forums/topic/1278/

And it seems you got a wrong value for WSGIPythonPath, which should point to the folder of python executable i.e. python.exe, not the project.

Post a Comment for "Django, Apache And Mod_wsgi"