Django Get Environment Variables From Apache
I cannot seem to get Django to read the settings I configure from the environment variables. I have followed some guides online, and found some other questions, and as a result hav
Solution 1:
I needed the same feature to deal with prod/dev environments... and found out the following article: http://drumcoder.co.uk/blog/2010/nov/12/apache-environment-variables-and-mod_wsgi/
I just tried it, and it worked at once. Pay attention to the Handler's name that is prefixed with a underscode:
_application = django.core.handlers.wsgi.WSGIHandler()
Post a Comment for "Django Get Environment Variables From Apache"