mirror of
https://github.com/bugsink/bugsink.git
synced 2026-01-06 05:10:15 -06:00
16 lines
431 B
Python
16 lines
431 B
Python
from django.apps import AppConfig
|
|
from django.utils.autoreload import autoreload_started
|
|
|
|
|
|
def watch_for_debugserver_reload(sender, **kwargs):
|
|
from .management.commands.make_consistent import make_consistent
|
|
make_consistent()
|
|
|
|
|
|
class EventsConfig(AppConfig):
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
name = 'events'
|
|
|
|
def ready(self):
|
|
autoreload_started.connect(watch_for_debugserver_reload)
|