core: trigger bootstrap tasks in server if we're debugging

closes #3040

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-06-09 20:21:31 +02:00
parent 7beebe030d
commit 5e2d647a6c
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,7 @@
from importlib import import_module
from django.apps import AppConfig
from django.conf import settings
class AuthentikCoreConfig(AppConfig):
@ -15,3 +16,7 @@ class AuthentikCoreConfig(AppConfig):
def ready(self):
import_module("authentik.core.signals")
import_module("authentik.core.managed")
if settings.DEBUG:
from authentik.root.celery import worker_ready_hook
worker_ready_hook()