mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 00:57:09 +01:00
Use a URL name for the redirect instead of a hard-coding
This commit is contained in:
parent
52d6cf085d
commit
101b7bb9bf
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue