added config.py

This commit is contained in:
2025-02-23 21:43:50 +01:00
parent c090b611e2
commit 9156142c04
9 changed files with 137 additions and 13 deletions

View File

@ -1,6 +1,16 @@
from django.apps import AppConfig
from django.utils.autoreload import autoreload_started
from TimeDispatcher.settings import BASE_DIR
def watchdog(sender, **kwargs):
sender.watch_dir(BASE_DIR, ".env")
class DispatcherConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'dispatcher'
def ready(self):
autoreload_started.connect(watchdog)