mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2026-03-10 18:36:41 -04:00
Autostart
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user