Browse Source

Fixed settings load order

Fixed loading settings before setting environment variable pointing to settings
Raymond Penners 10 years ago
parent
commit
58e8adc01c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/django/proj/celery.py

+ 2 - 2
examples/django/proj/celery.py

@@ -4,11 +4,11 @@ import os
 
 from celery import Celery
 
-from django.conf import settings
-
 # set the default Django settings module for the 'celery' program.
 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')
 
+from django.conf import settings
+
 app = Celery('proj')
 
 # Using a string here means the worker will not have to