lib.itmens/sync/apps.py

11 lines
255 B
Python
Raw Normal View History

2021-06-14 22:18:39 +02:00
from django.apps import AppConfig
2021-09-12 23:22:25 -04:00
from django.conf import settings
2021-06-14 22:18:39 +02:00
class SyncConfig(AppConfig):
name = 'sync'
2021-09-01 11:41:21 +02:00
def ready(self):
from sync.jobs import sync_task_manager
2021-09-12 23:22:25 -04:00
if settings.START_SYNC:
sync_task_manager.start()