浏览代码

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