Files
authentik/authentik/core/apps.py
2022-06-09 20:21:31 +02:00

23 lines
568 B
Python

"""authentik core app config"""
from importlib import import_module
from django.apps import AppConfig
from django.conf import settings
class AuthentikCoreConfig(AppConfig):
"""authentik core app config"""
name = "authentik.core"
label = "authentik_core"
verbose_name = "authentik Core"
mountpoint = ""
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()