1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-22 06:19:38 +02:00

Autostart

This commit is contained in:
Sean Morley 2024-08-21 10:14:31 -04:00
parent 425b7b4b3d
commit be384bd990

View file

@ -7,6 +7,5 @@ class AdventuresConfig(AppConfig):
def ready(self):
if settings.SCHEDULER_AUTOSTART:
from django.core.management import call_command
import threading
threading.Thread(target=call_command, args=('start_scheduler',)).start()
from .scheduler import start_scheduler
start_scheduler()