From 3e09b2d09d26112e301a1899faff2448c4323de8 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Fri, 8 Dec 2017 13:43:32 -0500 Subject: [PATCH] Remove old Preview config files (not used). --- lms/envs/cms/__init__.py | 0 lms/envs/cms/acceptance.py | 25 ------------------- lms/envs/cms/aws.py | 14 ----------- lms/envs/cms/dev.py | 44 ---------------------------------- lms/envs/cms/microsite_test.py | 38 ----------------------------- 5 files changed, 121 deletions(-) delete mode 100644 lms/envs/cms/__init__.py delete mode 100644 lms/envs/cms/acceptance.py delete mode 100644 lms/envs/cms/aws.py delete mode 100644 lms/envs/cms/dev.py delete mode 100644 lms/envs/cms/microsite_test.py diff --git a/lms/envs/cms/__init__.py b/lms/envs/cms/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/lms/envs/cms/acceptance.py b/lms/envs/cms/acceptance.py deleted file mode 100644 index d77ed3cc0e..0000000000 --- a/lms/envs/cms/acceptance.py +++ /dev/null @@ -1,25 +0,0 @@ -""" -This config file is a copy of dev environment without the Debug -Toolbar. I it suitable to run against acceptance tests. - -""" - -# We intentionally define lots of variables that aren't used, and -# want to import all variables from base settings files -# pylint: disable=wildcard-import, unused-wildcard-import - -from .dev import * - -# REMOVE DEBUG TOOLBAR - -INSTALLED_APPS = [e for e in INSTALLED_APPS if e != 'debug_toolbar' and e != 'debug_toolbar_mongo'] - -MIDDLEWARE_CLASSES = [e for e in MIDDLEWARE_CLASSES if e != 'debug_toolbar.middleware.DebugToolbarMiddleware'] - - -########################### LETTUCE TESTING ########################## -FEATURES['DISPLAY_TOY_COURSES'] = True - -INSTALLED_APPS.append('lettuce.django') - -LETTUCE_APPS = ('portal',) # dummy app covers the home page, login, registration, and course enrollment diff --git a/lms/envs/cms/aws.py b/lms/envs/cms/aws.py deleted file mode 100644 index fa93670f00..0000000000 --- a/lms/envs/cms/aws.py +++ /dev/null @@ -1,14 +0,0 @@ -""" -Settings for the LMS that runs alongside the CMS on AWS -""" - -# We intentionally define lots of variables that aren't used, and -# want to import all variables from base settings files -# pylint: disable=wildcard-import, unused-wildcard-import - -from ..aws import * - -with open(ENV_ROOT / "cms.auth.json") as auth_file: - CMS_AUTH_TOKENS = json.load(auth_file) - -MODULESTORE = CMS_AUTH_TOKENS['MODULESTORE'] diff --git a/lms/envs/cms/dev.py b/lms/envs/cms/dev.py deleted file mode 100644 index 071da177ea..0000000000 --- a/lms/envs/cms/dev.py +++ /dev/null @@ -1,44 +0,0 @@ -""" -Settings for the LMS that runs alongside the CMS on AWS -""" - -# We intentionally define lots of variables that aren't used, and -# want to import all variables from base settings files -# pylint: disable=wildcard-import, unused-wildcard-import - -from ..dev import * - -FEATURES['AUTH_USE_CERTIFICATES'] = False - -VIRTUAL_UNIVERSITIES = ['edge'] - -# Turn off this flag because it will render 'Edit / QA' links for all instructor viewings of -# modules. Since - for now - those links point to github (for XML based authoring), it seems broken -# to people using it. Once we can update those links to properly link back to Studio, -# then we can turn this flag back on, as well as enabling in aws.py configurations. -FEATURES['ENABLE_LMS_MIGRATION'] = False - -META_UNIVERSITIES = {} - -CONTENTSTORE = { - 'ENGINE': 'xmodule.contentstore.mongo.MongoContentStore', - 'DOC_STORE_CONFIG': { - 'host': 'localhost', - 'db': 'xcontent', - } -} - -INSTALLED_APPS.append('debug_toolbar_mongo') - - -DEBUG_TOOLBAR_PANELS += ( - 'debug_toolbar_mongo.panel.MongoDebugPanel', -) - -# HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS defines, as dictionary of regex's, a -# set of mappings of HTTP request hostnames to what the 'default' modulestore -# to use while processing the request. -# for example 'preview.edx.org' should use the draft modulestore. -HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS = { - r'preview\.': 'draft-preferred' -} diff --git a/lms/envs/cms/microsite_test.py b/lms/envs/cms/microsite_test.py deleted file mode 100644 index 586e357e85..0000000000 --- a/lms/envs/cms/microsite_test.py +++ /dev/null @@ -1,38 +0,0 @@ -""" -This is a localdev test for the Microsite processing pipeline -""" -# We intentionally define lots of variables that aren't used, and -# want to import all variables from base settings files -# pylint: disable=wildcard-import, unused-wildcard-import - -from .dev import * -from ..dev import ENV_ROOT, FEATURES - - -MICROSITE_CONFIGURATION = { - "openedx": { - "domain_prefix": "openedx", - "university": "openedx", - "platform_name": "Open edX", - "logo_image_url": "openedx/images/header-logo.png", - "email_from_address": "openedx@edx.org", - "payment_support_email": "openedx@edx.org", - "ENABLE_MKTG_SITE": False, - "SITE_NAME": "openedx.localhost", - "course_org_filter": "CDX", - "course_about_show_social_links": False, - "css_overrides_file": "openedx/css/openedx.css", - "show_partners": False, - "show_homepage_promo_video": False, - "course_index_overlay_text": "Explore free courses from leading universities.", - "course_index_overlay_logo_file": "openedx/images/header-logo.png", - "homepage_overlay_html": "

Take an Open edX Course

" - } -} - -MICROSITE_ROOT_DIR = ENV_ROOT / 'edx-microsite' - -# pretend we are behind some marketing site, we want to be able to assert that the Microsite config values override -# this global setting -FEATURES['ENABLE_MKTG_SITE'] = True -FEATURES['USE_MICROSITES'] = True