From ee79905d6ac3c492511fdc6e97f1a9d0a7b9a507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mih=C3=A1lik?= Date: Sun, 15 Dec 2024 13:38:15 +0100 Subject: [PATCH] Allow frontend to all api directly instead of going through next rewrite --- webstrom/settings.py | 1 + webstrom/settings_test.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/webstrom/settings.py b/webstrom/settings.py index da4af46..07e517d 100644 --- a/webstrom/settings.py +++ b/webstrom/settings.py @@ -60,6 +60,7 @@ 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', + 'django.middleware.common.BrokenLinkEmailsMiddleware', 'allauth.account.middleware.AccountMiddleware', ] diff --git a/webstrom/settings_test.py b/webstrom/settings_test.py index 478dbfc..ff4dd14 100644 --- a/webstrom/settings_test.py +++ b/webstrom/settings_test.py @@ -5,10 +5,11 @@ DEBUG = False ALLOWED_HOSTS = [ - "localhost", "test.strom.sk", ] +APPEND_SLASH = False + CSRF_TRUSTED_ORIGINS = [ "https://test.strom.sk", ] @@ -38,3 +39,7 @@ ("Martin Mihálik", "mihalik@strom.sk"), ("Peter Kovács", "kovacs@strom.sk"), ] + +MANAGERS = [ + ("Martin Mihálik", "mihalik@strom.sk"), +]