From 101b7bb9bf6b86e89cae75cabb956109e9d81203 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Fri, 13 Apr 2018 19:44:16 +0100 Subject: [PATCH] Use a URL name for the redirect instead of a hard-coding --- src/paperless/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless/urls.py b/src/paperless/urls.py index 1a2e514bc..47509286b 100644 --- a/src/paperless/urls.py +++ b/src/paperless/urls.py @@ -45,7 +45,7 @@ urlpatterns = [ url(r"admin/", admin.site.urls), # Redirect / to /admin - url(r"^$", RedirectView.as_view(permanent=True, url="/admin/")), + url(r"^$", RedirectView.as_view(permanent=True, url="admin:index")), ] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)