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()