Skip to content

Commit 07bf0e1

Browse files
JelteFmhagander
authored andcommitted
Add login redirect for dev environments
1 parent f8fd321 commit 07bf0e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pgcommitfest/local_settings_example.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@
1717
# Disables the PostgreSQL.ORG authentication.
1818
# Use the default built-in Django authentication module.
1919
AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
20+
21+
# The only login page we have in development is the Django admin login page.
22+
# It's not great, because it won't redirect to the page you were trying to
23+
# access, but it's better than a HTTP 500 error.
24+
PGAUTH_REDIRECT = '/admin/login/'

0 commit comments

Comments
 (0)