From 2e5f1a6e084d680cf4818f0a3745e64e88eaec5a Mon Sep 17 00:00:00 2001 From: Muhammad Farhan Date: Wed, 23 Oct 2024 11:31:39 +0500 Subject: [PATCH] chore: Remove CSRF_TRUSTED_ORIGINS_WITH_SCHEMES variable --- analytics_dashboard/settings/base.py | 1 - analytics_dashboard/settings/production.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/analytics_dashboard/settings/base.py b/analytics_dashboard/settings/base.py index 6b4602280..edb7058ec 100644 --- a/analytics_dashboard/settings/base.py +++ b/analytics_dashboard/settings/base.py @@ -520,4 +520,3 @@ DEFAULT_HASHING_ALGORITHM = 'sha1' CSRF_TRUSTED_ORIGINS = [] -CSRF_TRUSTED_ORIGINS_WITH_SCHEME = [] # temporary setting for Django 4.2 support diff --git a/analytics_dashboard/settings/production.py b/analytics_dashboard/settings/production.py index fad1c6713..f177d1543 100644 --- a/analytics_dashboard/settings/production.py +++ b/analytics_dashboard/settings/production.py @@ -38,6 +38,3 @@ # Use Cloudfront CDN for assets if CDN_DOMAIN: STATIC_URL = 'https://' + CDN_DOMAIN + '/static/' - -if django.VERSION[0] >= 4: # for greater than django 3.2 use schemes. - CSRF_TRUSTED_ORIGINS = CSRF_TRUSTED_ORIGINS_WITH_SCHEME