first commit
This commit is contained in:
14
code/fuadmin/celery.py
Normal file
14
code/fuadmin/celery.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import os
|
||||
|
||||
from celery import Celery, platforms
|
||||
from django.conf import settings
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', "fuadmin.settings")
|
||||
|
||||
# app = Celery(f"application")
|
||||
app = Celery(f"system")
|
||||
|
||||
app.config_from_object('django.conf:settings', namespace='CELERY')
|
||||
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
|
||||
# app.autodiscover_tasks()
|
||||
platforms.C_FORCE_ROOT = True
|
||||
Reference in New Issue
Block a user