ソースを参照

Examples/Docs: Django example does not need to import settings

Ask Solem 8 年 前
コミット
9f0cf25748
1 ファイル変更0 行追加2 行削除
  1. 0 2
      examples/django/proj/celery.py

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

@@ -7,8 +7,6 @@ from celery import Celery
 # set the default Django settings module for the 'celery' program.
 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')
 
-from django.conf import settings  # noqa
-
 app = Celery('proj')
 
 # Using a string here means the worker doesn't have to serialize