From f284802daee89caf07cbd953658d98f247d6e10c Mon Sep 17 00:00:00 2001 From: Ronald Abimbola Date: Fri, 2 Aug 2024 18:04:16 +0200 Subject: [PATCH] Deployment --- docnet_backend/docnet_backend/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docnet_backend/docnet_backend/settings.py b/docnet_backend/docnet_backend/settings.py index 45c73a9..08d4323 100644 --- a/docnet_backend/docnet_backend/settings.py +++ b/docnet_backend/docnet_backend/settings.py @@ -57,14 +57,14 @@ MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware", - "django.contrib.sessions.middleware.SessionMiddleware", "corsheaders.middleware.CorsMiddleware", + "accounts.middleware.JWTAuthenticationMiddleware", + "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", - "accounts.middleware.JWTAuthenticationMiddleware", ] ROOT_URLCONF = "docnet_backend.urls"