Fix redirect bug #283

This commit is contained in:
Daniel Quinn 2018-01-21 17:33:04 +00:00
parent 09e1b505e1
commit b747dd58c3

View File

@ -44,8 +44,8 @@ urlpatterns = [
# The Django admin # The Django admin
url(r"admin/", admin.site.urls), url(r"admin/", admin.site.urls),
# Catch all redirect back to /admin # Redirect / to /admin
url(r"", RedirectView.as_view(permanent=True, url="/admin/")), url(r"^$", RedirectView.as_view(permanent=True, url="/admin/")),
] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) ] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)