A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Don't try to remove SessionAuthenticationMiddleware
Daniel Quinn3c8aa3ba420d
diff --git a/src/paperless/settings.py b/src/paperless/settings.pyindex 2eb6d655a..06cc1807f 100644--- a/src/paperless/settings.py+++ b/src/paperless/settings.py@@ -79,8 +79,6 @@ INSTALLED_APPS = [if os.getenv("PAPERLESS_INSTALLED_APPS"):INSTALLED_APPS += os.getenv("PAPERLESS_INSTALLED_APPS").split(",")--MIDDLEWARE = ['django.middleware.security.SecurityMiddleware','django.contrib.sessions.middleware.SessionMiddleware',@@ -99,7 +97,6 @@ CORS_ORIGIN_WHITELIST = tuple(os.getenv("PAPERLESS_CORS_ALLOWED_HOSTS", "localhoif bool(os.getenv("PAPERLESS_DISABLE_LOGIN", "false").lower() in ("yes", "y", "1", "t", "true")):_index = MIDDLEWARE.index("django.contrib.auth.middleware.AuthenticationMiddleware")MIDDLEWARE[_index] = "paperless.middleware.Middleware"- MIDDLEWARE.remove("django.contrib.auth.middleware.SessionAuthenticationMiddleware")ROOT_URLCONF = 'paperless.urls'