Error :
django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
방법 :
/celery.py
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', '프로젝트폴더이름.settings')
를 추가해주면 된다.
more :
http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html#django-first-steps
'공부 > Python' 카테고리의 다른 글
python 시각화 패키지 tqdm, js 크롤링 selenium (0) | 2018.03.14 |
---|---|
Jupyter Notebook 단축키 (0) | 2018.03.08 |
Django-Celery : Periodic Tasks. 반복적인 일처리 (0) | 2016.06.08 |
Django-Celery : Next Steps (0) | 2016.06.08 |
Django-Celery : First Steps with Celery (0) | 2016.06.08 |