Skip to content

Commit

Permalink
Make env vars less intrusive in WSGI
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar303 committed Jan 27, 2012
1 parent d8044b1 commit b92ec1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wsgi/playdoh.wsgi
Original file line number Diff line number Diff line change
@@ -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 manage.py

# Add the app dir to the python path so we can import manage.
wsgidir = os.path.dirname(__file__)
Expand All @@ -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.