From fce015e08cf884aa40bb17c08986300671469c2a Mon Sep 17 00:00:00 2001 From: Troy Sankey <tsankey@edx.org> Date: Thu, 10 Sep 2020 15:36:04 -0400 Subject: [PATCH] Create new analytics_exporter.py settings These new settings files are intended to be used by the Analytics Exporter automation managed by the DE team. The Analytics Exporter must be able to simply clone edx-platform, install requirements, fetch remote-config, then just run management commands without needing to run any ansible or pull down any docker/AMI images. Since the theming app includes a check that fails if the themes base dir cannot be found, and that check runs on app startup, we must disable the app. DENG-379 --- cms/envs/analytics_exporter.py | 13 +++++++++++++ lms/envs/analytics_exporter.py | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 cms/envs/analytics_exporter.py create mode 100644 lms/envs/analytics_exporter.py diff --git a/cms/envs/analytics_exporter.py b/cms/envs/analytics_exporter.py new file mode 100644 index 00000000000..a6b53a27110 --- /dev/null +++ b/cms/envs/analytics_exporter.py @@ -0,0 +1,13 @@ +""" +Settings for running management commands for the Analytics Exporter. + +The Analytics Exporter jobs run edxapp management commands using production +settings and configuration, however they currently DO NOT use edxapp production +environments (such as edxapp Amazon AMIs or Docker images) where theme files +get installed. As a result we must disable comprehensive theming or else +startup checks from the theming app will throw an error due to missing themes. +""" + +from .production import * # pylint: disable=wildcard-import, unused-wildcard-import + +ENABLE_COMPREHENSIVE_THEMING = False diff --git a/lms/envs/analytics_exporter.py b/lms/envs/analytics_exporter.py new file mode 100644 index 00000000000..a6b53a27110 --- /dev/null +++ b/lms/envs/analytics_exporter.py @@ -0,0 +1,13 @@ +""" +Settings for running management commands for the Analytics Exporter. + +The Analytics Exporter jobs run edxapp management commands using production +settings and configuration, however they currently DO NOT use edxapp production +environments (such as edxapp Amazon AMIs or Docker images) where theme files +get installed. As a result we must disable comprehensive theming or else +startup checks from the theming app will throw an error due to missing themes. +""" + +from .production import * # pylint: disable=wildcard-import, unused-wildcard-import + +ENABLE_COMPREHENSIVE_THEMING = False -- GitLab