Skip to content
Browse files

Updating WSGI file to latest iteration.

  • Loading branch information...
1 parent 3fed851 commit ee49890c08656328bd28ce00260ee0fd1acecf72 @brandonsavage brandonsavage committed Mar 25, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 wsgi/playdoh.wsgi
View
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 manage.py
# 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 ee49890

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