fix errorenous logic when running a microsite that could reside in a hosting environment with a marketing site in front of it pep8/pylint fixes address PR feedback, remove underscore from test hostname more pep8/pylint cleanup. Skip test_microsites test, it works on localdev, not on Jenkins. Need to talk with QA team manually add Ned's single-to-double quote fix change aws.py runtimes so that the microsite_dir that is read from configuration is changed to a python path Conflicts: lms/templates/help_modal.html
39 lines
1.3 KiB
Python
39 lines
1.3 KiB
Python
"""
|
|
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=W0401, W0614
|
|
|
|
from .dev import *
|
|
from .dev import SUBDOMAIN_BRANDING, VIRTUAL_UNIVERSITIES
|
|
|
|
|
|
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": "<h1>Take an Open edX Course</h1>"
|
|
},
|
|
}
|
|
|
|
if len(MICROSITE_CONFIGURATION.keys()) > 0:
|
|
enable_microsites(
|
|
MICROSITE_CONFIGURATION,
|
|
SUBDOMAIN_BRANDING,
|
|
VIRTUAL_UNIVERSITIES
|
|
)
|