From b05a198dbd7b2503fec6a7bff7e0d9cdc5d641b6 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Fri, 13 Oct 2023 14:00:54 -0500 Subject: [PATCH] feat: add tutor patches for superset config --- .../aspects/apps/superset/pythonpath/superset_config.py | 2 ++ .../aspects/apps/superset/pythonpath/superset_config_docker.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config.py b/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config.py index a7e97eddb..a96471091 100644 --- a/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config.py +++ b/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config.py @@ -161,6 +161,8 @@ class CeleryConfig(object): BABEL_DEFAULT_LOCALE = "{{ SUPERSET_DEFAULT_LOCALE }}" +{{ patch('superset-config')}} + # Optionally import superset_config_docker.py (which will have been included on # the PYTHONPATH) in order to allow for local settings to be overridden # diff --git a/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config_docker.py b/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config_docker.py index 9dce32156..3545b2278 100644 --- a/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config_docker.py +++ b/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config_docker.py @@ -107,3 +107,6 @@ def can_view_courses_wrapper(*args, **kwargs): # https://flask.palletsprojects.com/en/latest/deploying/proxy_fix/ ENABLE_PROXY_FIX = True {% endif %} + + +{{ patch('superset-config-docker')}}