mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-24 07:19:36 +02:00
Fix scheduler
This commit is contained in:
parent
4241a1024e
commit
91ef71da7a
4 changed files with 37 additions and 9 deletions
|
@ -7,5 +7,6 @@ class AdventuresConfig(AppConfig):
|
|||
|
||||
def ready(self):
|
||||
if settings.SCHEDULER_AUTOSTART:
|
||||
from .scheduler import start_scheduler
|
||||
start_scheduler()
|
||||
from django.core.management import call_command
|
||||
import threading
|
||||
threading.Thread(target=call_command, args=('start_scheduler',)).start()
|
Loading…
Add table
Add a link
Reference in a new issue