Update urls.py

This commit is contained in:
zandercymatics 2023-08-15 09:20:34 -06:00
parent 3a6acd9c29
commit df04f2c312
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -118,17 +118,6 @@ urlpatterns = [
),
]
# What is the purpose of this?
# This behaviour gets overwritten, so this doesn't do anything...
# Login in particular
if not settings.DEBUG:
urlpatterns += [
# redirect to login.gov
path(
"admin/login/", RedirectView.as_view(pattern_name="login", permanent=False)
),
]
# 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