diff --git a/analyticsdataserver/settings/base.py b/analyticsdataserver/settings/base.py index d6952bc6..947d7d29 100644 --- a/analyticsdataserver/settings/base.py +++ b/analyticsdataserver/settings/base.py @@ -432,7 +432,6 @@ ########## EDX ENTERPRISE DATA CONFIGURATION API_AUTH_TOKEN = 'put-your-api-token-here' CSRF_COOKIE_SECURE = False -CSRF_TRUSTED_ORIGINS_WITH_SCHEME = [] # just for Django 4.2 upgrade EXTRA_APPS = [] SESSION_EXPIRE_AT_BROWSER_CLOSE = False diff --git a/analyticsdataserver/settings/production.py b/analyticsdataserver/settings/production.py index f17d4e2d..3c66c580 100644 --- a/analyticsdataserver/settings/production.py +++ b/analyticsdataserver/settings/production.py @@ -53,6 +53,3 @@ def get_env_setting(setting): for override, value in DB_OVERRIDES.items(): DATABASES['default'][override] = value - -if django.VERSION[0] >= 4: # for greater than django 3.2 use schemes. - CSRF_TRUSTED_ORIGINS = CSRF_TRUSTED_ORIGINS_WITH_SCHEME