diff options
author | Jelte Fennema-Nio | 2024-09-24 20:27:40 +0000 |
---|---|---|
committer | Magnus Hagander | 2024-09-24 20:27:40 +0000 |
commit | 07bf0e167f8a3c55e662743ecd7be70d66fe72f9 (patch) | |
tree | e4b3860a093086950168009b0c5cce913775d0f6 | |
parent | f8fd32193560e0f4053873fe13df820b9dd79ff4 (diff) |
Add login redirect for dev environments
-rw-r--r-- | pgcommitfest/local_settings_example.py | 5 |
1 files changed, 5 insertions, 0 deletions
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/' |