mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 10:36:58 +01:00
Add catch-all redirect for /admin/
This commit is contained in:
parent
e236b7bf7b
commit
f2a42ab6fe
1 changed files with 3 additions and 1 deletions
|
|
@ -43,7 +43,9 @@ urlpatterns = [
|
||||||
|
|
||||||
# The Django admin
|
# The Django admin
|
||||||
url(r"admin/", admin.site.urls),
|
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)
|
] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue