From a8a9c041d08891196f1ecf3c03b5d99ae70a99f0 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 21 Jul 2022 13:48:23 +0100 Subject: [PATCH] Update domain in local settings --- app/local_settings.example.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/local_settings.example.py b/app/local_settings.example.py index 1065431..71509ab 100644 --- a/app/local_settings.example.py +++ b/app/local_settings.example.py @@ -12,12 +12,13 @@ OPENSEARCH_MAIN_SEARCH_FIELDS = ["msg"] # URLs DOMAIN = "example.com" +URL = f"https://{DOMAIN}" # Access control -ALLOWED_HOSTS = ["127.0.0.1"] +ALLOWED_HOSTS = ["127.0.0.1", DOMAIN] # CSRF -CSRF_TRUSTED_ORIGINS = [f"https://{DOMAIN}"] +CSRF_TRUSTED_ORIGINS = [URL] # Stripe STRIPE_TEST = True