Permalink
Browse files

Initialize DJANGO_SETTINGS_MODULE *before* "from django.conf import s…

…ettings".

Apparently something around this changed.


git-svn-id: http://rietveld.googlecode.com/svn/trunk@399 e30e9e8f-1b4c-0410-881d-6f13584adfe0
  • Loading branch information...
gvanrossum
gvanrossum committed Mar 3, 2009
1 parent e481eea commit eae87e2a6b0e18c7c4e30289b5ca819dceb17a35
Showing with 1 addition and 1 deletion.
  1. +1 −1 main.py
@@ -63,9 +63,9 @@ def BREAKPOINT():
# Custom Django configuration.
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from django.conf import settings
settings._target = None
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
# Import various parts of Django.
import django.core.handlers.wsgi

0 comments on commit eae87e2

Please sign in to comment.