From 07bf0e167f8a3c55e662743ecd7be70d66fe72f9 Mon Sep 17 00:00:00 2001 From: Jelte Fennema-Nio Date: Tue, 24 Sep 2024 22:27:40 +0200 Subject: [PATCH] Add login redirect for dev environments --- pgcommitfest/local_settings_example.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pgcommitfest/local_settings_example.py b/pgcommitfest/local_settings_example.py index 51740ff..d3648cc 100644 --- a/pgcommitfest/local_settings_example.py +++ b/pgcommitfest/local_settings_example.py @@ -17,3 +17,8 @@ DATABASES = { # Disables the PostgreSQL.ORG authentication. # Use the default built-in Django authentication module. AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend'] + +# The only login page we have in development is the Django admin login page. +# It's not great, because it won't redirect to the page you were trying to +# access, but it's better than a HTTP 500 error. +PGAUTH_REDIRECT = '/admin/login/' -- 2.39.5