From ee1a7f186ff6d3118db05306abb413df6dfe7600 Mon Sep 17 00:00:00 2001 From: Stuart Chalk Date: Sun, 19 May 2024 08:38:38 +0100 Subject: [PATCH] added localhost to allowed_hosts --- sciflow/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sciflow/settings.py b/sciflow/settings.py index 4d9991d..44b6dff 100644 --- a/sciflow/settings.py +++ b/sciflow/settings.py @@ -26,7 +26,7 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = ['sds.coas.unf.edu', '127.0.0.1'] +ALLOWED_HOSTS = ['sds.coas.unf.edu', '127.0.0.1', 'localhost'] # cors setup CORS_ORIGIN_ALLOW_ALL = False @@ -69,6 +69,7 @@ 'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'corsheaders.middleware.CorsMiddleware', + 'allauth.account.middleware.AccountMiddleware', ] REST_FRAMEWORK = {