Browse Source

Merge pull request #2400 from pennersr/patch-1

Fixed settings load order
Dmitry Malinovsky 10 năm trước cách đây
mục cha
commit
3f897cacd4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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