소스 검색

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