Merge pull request #16412 from edx/pwnage101/settings_validation_refactor_PLAT-1776

move settings validation out of startup.py
This commit is contained in:
Troy Sankey
2017-11-03 13:44:11 -04:00
committed by GitHub
10 changed files with 152 additions and 127 deletions

View File

@@ -2034,7 +2034,10 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'djcelery',
# Initialization
# Common Initialization
'openedx.core.djangoapps.common_initialization.apps.CommonInitializationConfig',
# LMS-specific Initialization
'lms_initialization.apps.LMSInitializationConfig',
# Common views

View File

@@ -18,8 +18,6 @@ from openedx.core.djangoapps.monkey_patch import django_db_models_options
import xmodule.x_module
import lms_xblock.runtime
from startup_configurations.validate_config import validate_lms_config
log = logging.getLogger(__name__)
@@ -45,9 +43,6 @@ def run():
xmodule.x_module.descriptor_global_handler_url = lms_xblock.runtime.handler_url
xmodule.x_module.descriptor_global_local_resource_url = lms_xblock.runtime.local_resource_url
# validate configurations on startup
validate_lms_config(settings)
def add_mimetypes():
"""