From 4b5adc6a6ad4fe554244ce72bfcc6ec417421432 Mon Sep 17 00:00:00 2001 From: Robert Raposa Date: Thu, 28 Jan 2021 17:32:57 -0500 Subject: [PATCH] warn against import from lms in cms Adds a warning against import any additional settings from LMS in CMS due to its incompatibility with our future direction. For more details, see the warning. --- cms/envs/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cms/envs/common.py b/cms/envs/common.py index 99287b0c89..5a2e2d26a5 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -48,6 +48,10 @@ from corsheaders.defaults import default_headers as corsheaders_default_headers from datetime import timedelta import lms.envs.common # Although this module itself may not use these imported variables, other dependent modules may. +# Warning: Do NOT add any new variables to this list. This is incompatible with future plans to +# have more logical separation between LMS and Studio (CMS). It is also incompatible with the +# direction documented in OEP-45: Configuring and Operating Open edX: +# https://open-edx-proposals.readthedocs.io/en/latest/oep-0045-arch-ops-and-config.html from lms.envs.common import ( USE_TZ, ALL_LANGUAGES, ASSET_IGNORE_REGEX, PARENTAL_CONSENT_AGE_LIMIT, REGISTRATION_EMAIL_PATTERNS_ALLOWED,