This commit is contained in:
zandercymatics 2024-03-18 12:28:21 -06:00
parent d046ee8315
commit b4829d650a
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
6 changed files with 35 additions and 64 deletions

View file

@ -3,7 +3,7 @@
For more information see:
https://docs.djangoproject.com/en/4.0/topics/http/urls/
"""
from django.conf.urls import handler500
from django.contrib import admin
from django.urls import include, path
from django.views.generic import RedirectView
@ -149,6 +149,10 @@ urlpatterns = [
),
]
# Djangooidc strips out context data from that context, so we define a custom error
# view through this method.
handler500 = "registrar.views.utility.error_views.custom_500_error_view"
# we normally would guard these with `if settings.DEBUG` but tests run with
# DEBUG = False even when these apps have been loaded because settings.DEBUG
# was actually True. Instead, let's add these URLs any time we are able to