소스 검색

Merge pull request #2400 from pennersr/patch-1

Fixed settings load order
Dmitry Malinovsky 10 년 전
부모
커밋
3f897cacd4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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