Explorar el Código

Merge pull request #2400 from pennersr/patch-1

Fixed settings load order
Dmitry Malinovsky hace 10 años
padre
commit
3f897cacd4
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 celery import Celery
 
 
-from django.conf import settings
-
 # set the default Django settings module for the 'celery' program.
 # set the default Django settings module for the 'celery' program.
 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')
 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')
 
 
+from django.conf import settings
+
 app = Celery('proj')
 app = Celery('proj')
 
 
 # Using a string here means the worker will not have to
 # Using a string here means the worker will not have to