Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Make env vars less intrusive in WSGI

  • Loading branch information...
commit b92ec1fa4b1f8824789a4b3abe11abab6a2e20cf 1 parent d8044b1
@kumar303 kumar303 authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 wsgi/playdoh.wsgi
5 wsgi/playdoh.wsgi
@@ -1,7 +1,9 @@
import os
import site
-os.environ['CELERY_LOADER'] = 'django'
+os.environ.setdefault('CELERY_LOADER', 'django')
+# NOTE: you can also set DJANGO_SETTINGS_MODULE in your environment to override
+# the default value in
# Add the app dir to the python path so we can import manage.
wsgidir = os.path.dirname(__file__)
@@ -11,7 +13,6 @@ site.addsitedir(os.path.abspath(os.path.join(wsgidir, '../')))
import manage
import django.core.handlers.wsgi
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
application = django.core.handlers.wsgi.WSGIHandler()
# vim: ft=python

0 comments on commit b92ec1f

Please sign in to comment.
Something went wrong with that request. Please try again.