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.
This commit is contained in:
Robert Raposa
2021-01-28 17:32:57 -05:00
committed by GitHub
parent 27defaba2f
commit 4b5adc6a6a

View File

@@ -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,