api: re-fix url import logging (#6400)

* fix logging

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* remove lib from apps

lib doesn't declare any models, so it really doesn't need to be in there anyways?

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* remove lib from schema too

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-07-27 12:56:51 +02:00 committed by GitHub
parent 664bc19bba
commit b08f8d8e0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1 additions and 18 deletions

View file

@ -22,7 +22,7 @@ for _authentik_app in get_apps():
try: try:
api_urls = import_module(f"{_authentik_app.name}.urls") api_urls = import_module(f"{_authentik_app.name}.urls")
except (ModuleNotFoundError, ImportError) as exc: except (ModuleNotFoundError, ImportError) as exc:
LOGGER.warning("Could not import app's URLs", app_name=_authentik_app.name, exception=exc) LOGGER.warning("Could not import app's URLs", app_name=_authentik_app.name, exc=exc)
continue continue
if not hasattr(api_urls, "api_urlpatterns"): if not hasattr(api_urls, "api_urlpatterns"):
LOGGER.debug( LOGGER.debug(

View file

@ -1,10 +0,0 @@
"""authentik lib app config"""
from django.apps import AppConfig
class AuthentikLibConfig(AppConfig):
"""authentik lib app config"""
name = "authentik.lib"
label = "authentik_lib"
verbose_name = "authentik lib"

View file

@ -66,7 +66,6 @@ INSTALLED_APPS = [
"authentik.crypto", "authentik.crypto",
"authentik.events", "authentik.events",
"authentik.flows", "authentik.flows",
"authentik.lib",
"authentik.outposts", "authentik.outposts",
"authentik.policies.dummy", "authentik.policies.dummy",
"authentik.policies.event_matcher", "authentik.policies.event_matcher",

View file

@ -3213,7 +3213,6 @@
"authentik.crypto", "authentik.crypto",
"authentik.events", "authentik.events",
"authentik.flows", "authentik.flows",
"authentik.lib",
"authentik.outposts", "authentik.outposts",
"authentik.policies.dummy", "authentik.policies.dummy",
"authentik.policies.event_matcher", "authentik.policies.event_matcher",

View file

@ -26665,7 +26665,6 @@ components:
- authentik.crypto - authentik.crypto
- authentik.events - authentik.events
- authentik.flows - authentik.flows
- authentik.lib
- authentik.outposts - authentik.outposts
- authentik.policies.dummy - authentik.policies.dummy
- authentik.policies.event_matcher - authentik.policies.event_matcher
@ -26715,7 +26714,6 @@ components:
* `authentik.crypto` - authentik Crypto * `authentik.crypto` - authentik Crypto
* `authentik.events` - authentik Events * `authentik.events` - authentik Events
* `authentik.flows` - authentik Flows * `authentik.flows` - authentik Flows
* `authentik.lib` - authentik lib
* `authentik.outposts` - authentik Outpost * `authentik.outposts` - authentik Outpost
* `authentik.policies.dummy` - authentik Policies.Dummy * `authentik.policies.dummy` - authentik Policies.Dummy
* `authentik.policies.event_matcher` - authentik Policies.Event Matcher * `authentik.policies.event_matcher` - authentik Policies.Event Matcher
@ -29442,7 +29440,6 @@ components:
* `authentik.crypto` - authentik Crypto * `authentik.crypto` - authentik Crypto
* `authentik.events` - authentik Events * `authentik.events` - authentik Events
* `authentik.flows` - authentik Flows * `authentik.flows` - authentik Flows
* `authentik.lib` - authentik lib
* `authentik.outposts` - authentik Outpost * `authentik.outposts` - authentik Outpost
* `authentik.policies.dummy` - authentik Policies.Dummy * `authentik.policies.dummy` - authentik Policies.Dummy
* `authentik.policies.event_matcher` - authentik Policies.Event Matcher * `authentik.policies.event_matcher` - authentik Policies.Event Matcher
@ -29633,7 +29630,6 @@ components:
* `authentik.crypto` - authentik Crypto * `authentik.crypto` - authentik Crypto
* `authentik.events` - authentik Events * `authentik.events` - authentik Events
* `authentik.flows` - authentik Flows * `authentik.flows` - authentik Flows
* `authentik.lib` - authentik lib
* `authentik.outposts` - authentik Outpost * `authentik.outposts` - authentik Outpost
* `authentik.policies.dummy` - authentik Policies.Dummy * `authentik.policies.dummy` - authentik Policies.Dummy
* `authentik.policies.event_matcher` - authentik Policies.Event Matcher * `authentik.policies.event_matcher` - authentik Policies.Event Matcher
@ -36730,7 +36726,6 @@ components:
* `authentik.crypto` - authentik Crypto * `authentik.crypto` - authentik Crypto
* `authentik.events` - authentik Events * `authentik.events` - authentik Events
* `authentik.flows` - authentik Flows * `authentik.flows` - authentik Flows
* `authentik.lib` - authentik lib
* `authentik.outposts` - authentik Outpost * `authentik.outposts` - authentik Outpost
* `authentik.policies.dummy` - authentik Policies.Dummy * `authentik.policies.dummy` - authentik Policies.Dummy
* `authentik.policies.event_matcher` - authentik Policies.Event Matcher * `authentik.policies.event_matcher` - authentik Policies.Event Matcher