Skip to content

Commit

Permalink
fix:wrong CMS development settings
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfelipec95 committed Nov 2, 2023
1 parent 291beb3 commit df1588c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
11 changes: 11 additions & 0 deletions tutordistro/patches/openedx-cms-development-settings
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@
# End {{ pkg["name"] }} settings
{%- endif -%}
{% endfor %}

{%- for pkg in iter_values_named(suffix="_DPKG") %}
{%- if pkg["name"] == 'eox-theming' %}
################## EOX_THEMING ##################
from lms.envs.common import _make_mako_template_dirs # pylint: disable=import-error
ENABLE_COMPREHENSIVE_THEMING = True
TEMPLATES[1]["DIRS"] = _make_mako_template_dirs
derive_settings("cms.envs.devstack")
# EOL
{%- endif %}
{%- endfor %}
12 changes: 0 additions & 12 deletions tutordistro/patches/openedx-development-settings
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ COMPREHENSIVE_THEME_DIRS.remove('/openedx/themes')
COMPREHENSIVE_THEME_DIRS.extend({{ DISTRO_THEME_DIRS }})
{%- endif %}

{%- for pkg in iter_values_named(suffix="_DPKG") %}
{%- if pkg["name"] == 'eox-theming' %}
################## EOX_THEMING ##################
if "EOX_THEMING_DEFAULT_THEME_NAME" in locals() and EOX_THEMING_DEFAULT_THEME_NAME:
from lms.envs.common import _make_mako_template_dirs # pylint: disable=import-error
ENABLE_COMPREHENSIVE_THEMING = True
TEMPLATES[1]["DIRS"] = _make_mako_template_dirs
derive_settings("lms.envs.devstack")
# EOL
{%- endif %}
{%- endfor %}

{%- if DISTRO_EXTRA_MIDDLEWARES is defined %}
MIDDLEWARE.extend({{ DISTRO_EXTRA_MIDDLEWARES }})
{% endif %}
13 changes: 13 additions & 0 deletions tutordistro/patches/openedx-lms-development-settings
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
SESSION_COOKIE_DOMAIN = ".{{ LMS_HOST|common_domain(CMS_HOST) }}"

{%- for pkg in iter_values_named(suffix="_DPKG") %}
{%- if pkg["name"] == 'eox-theming' %}
################## EOX_THEMING ##################
if "EOX_THEMING_DEFAULT_THEME_NAME" in locals() and EOX_THEMING_DEFAULT_THEME_NAME:
from lms.envs.common import _make_mako_template_dirs # pylint: disable=import-error
ENABLE_COMPREHENSIVE_THEMING = True
TEMPLATES[1]["DIRS"] = _make_mako_template_dirs
derive_settings("lms.envs.devstack")

# EOL
{%- endif %}
{%- endfor %}

0 comments on commit df1588c

Please sign in to comment.