From f71c3eae3fd1b014464b94e796c3602c6b3364e0 Mon Sep 17 00:00:00 2001 From: ftsell Date: Wed, 14 Feb 2024 13:52:03 +0100 Subject: [PATCH] fix admin login not working --- .../src/{{ cookiecutter.project_slug }}/settings.py | 3 --- .../src/{{ cookiecutter.project_slug }}/urls.py | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/settings.py b/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/settings.py index 45fd86a..4de4b38 100644 --- a/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/settings.py +++ b/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/settings.py @@ -62,7 +62,6 @@ OPENID_SUPERUSER_GROUPS = env.list("DJANGO_OPENID_SUPERUSER_GROUPS", default=[]) - # static django config INSTALLED_APPS = [ @@ -114,8 +113,6 @@ WSGI_APPLICATION = "{{ cookiecutter.project_slug }}.wsgi.application" AUTH_USER_MODEL = "{{ cookiecutter.project_slug }}_core.MafiasiUser" -LOGIN_REDIRECT_URL = "/" -OPENID_REDIRECT_URI = None SILENCED_SYSTEM_CHECKS = [ # disable tls related checks because tls stuff is handled externally by our reverse-proxy diff --git a/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/urls.py b/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/urls.py index 406e9aa..08fd139 100644 --- a/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/urls.py +++ b/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/urls.py @@ -19,6 +19,7 @@ urlpatterns = [ path("admin/", admin.site.urls), + path("admin/openid-auth/", include("simple_openid_connect.urls")), path("api/", include("{{ cookiecutter.project_slug }}.api.urls")), path("metrics/", include("{{ cookiecutter.project_slug }}.metrics.urls")), ]