فهرست منبع

Fixed settings load order

Fixed loading settings before setting environment variable pointing to settings
Raymond Penners 10 سال پیش
والد
کامیت
58e8adc01c
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