23 lines
568 B
Python
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()
|