Add catch-all redirect for /admin/

This commit is contained in:
Daniel Quinn 2018-01-06 18:51:16 +00:00
parent e236b7bf7b
commit f2a42ab6fe

View File

@ -43,7 +43,9 @@ urlpatterns = [
# The Django admin
url(r"admin/", admin.site.urls),
url(r"", admin.site.urls), # This is going away
# Catch all redirect back to /admin
url(r"", RedirectView.as_view(permanent=True, url="/admin/")),
] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)