start auth apis and packages, redis, celery and run with docker
This commit is contained in:
13
config/celery.py
Normal file
13
config/celery.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
|
||||
import celery
|
||||
|
||||
from config.env import env
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", env("DJANGO_SETTINGS_MODULE"))
|
||||
|
||||
app = celery.Celery("config")
|
||||
|
||||
app.config_from_object("django.conf:settings", namespace="CELERY")
|
||||
|
||||
app.autodiscover_tasks()
|
||||
Reference in New Issue
Block a user