A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix redirect for subpaths (hopefully)
Daniel Quinn4585308e7f65
diff --git a/src/paperless/urls.py b/src/paperless/urls.pyindex 1a2e514bc..e5e559f12 100644--- a/src/paperless/urls.py+++ b/src/paperless/urls.py@@ -1,6 +1,7 @@from django.conf import settingsfrom django.conf.urls import include, static, urlfrom django.contrib import admin+from django.urls import reverse_lazyfrom django.views.decorators.csrf import csrf_exemptfrom django.views.generic import RedirectViewfrom rest_framework.routers import DefaultRouter@@ -45,7 +46,8 @@ 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=reverse_lazy("admin:index"))),] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)