Use a URL name for the redirect instead of a hard-coding

This commit is contained in:
Daniel Quinn 2018-04-13 19:44:16 +01:00
parent 52d6cf085d
commit 101b7bb9bf

View File

@ -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)