mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 09:37:03 +02:00
Refactor
This commit is contained in:
parent
d046ee8315
commit
b4829d650a
6 changed files with 35 additions and 64 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue