mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-21 13:59:36 +02:00
11 lines
No EOL
327 B
Python
11 lines
No EOL
327 B
Python
from django.apps import AppConfig
|
|
from django.conf import settings
|
|
|
|
class AdventuresConfig(AppConfig):
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
name = 'adventures'
|
|
|
|
def ready(self):
|
|
if settings.SCHEDULER_AUTOSTART:
|
|
from .scheduler import start_scheduler
|
|
start_scheduler() |