# Enable Comprehensive Theming – Devstack – Mako Template Overrides Not Working

**URL:** <https://discuss.openedx.org/t/enable-comprehensive-theming-devstack-mako-template-overrides-not-working/3557>\
**Category:** Design\
**Tags:** juniper, theming\
**Created:** [November 5, 2020, 4:22am UTC](https://discuss.openedx.org/t/enable-comprehensive-theming-devstack-mako-template-overrides-not-working/3557 "2020-11-05T04:22:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zachary\_Trabookis](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/zachary_trabookis/32/753_2.png) [@Zachary\_Trabookis](https://discuss.openedx.org/u/Zachary_Trabookis)\
**Post date:** [November 5, 2020, 4:22am UTC](https://discuss.openedx.org/t/enable-comprehensive-theming-devstack-mako-template-overrides-not-working/3557/1 "2020-11-05T04:22:45Z")

</div>

**Issue**  
After enabling comprehensive theming on devstack\_docker I was not able to successfully override a theme template file. CSS changes through Sass updates were working just fine.

I looked at [Setup to develop a custom theme in devstack](https://discuss.openedx.org/t/setup-to-develop-a-custom-theme-in-devstack/221) but it had no solution.

**Solution**  
Details: [https://openedx.slack.com/archives/C0G15M90X/p1604520587008500](https://openedx.slack.com/archives/C0G15M90X/p1604520587008500)

For those having issues getting their comprehensive theming working for overridden template files uncomment these lines in `lms/envs/devstack.py`.

> <https://github.com/edx/edx-platform/blob/open-release/juniper.master/lms/envs/devstack.py#L388-L405>

The issue lies in adding the theme template directories to the Mako base templates with this assignment being the answer to how it works.  
`TEMPLATES[1]["DIRS"] = _make_mako_template_dirs`

cc: @sambapete, @jill, @djoy, @Tuchfarber

---

<div class="post-metadata">

**Author:** ![wowkalucky](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/wowkalucky/32/1305_2.png) [@wowkalucky](https://discuss.openedx.org/u/wowkalucky)\
**Post date:** [November 5, 2020, 8:51am UTC](https://discuss.openedx.org/t/enable-comprehensive-theming-devstack-mako-template-overrides-not-working/3557/2 "2020-11-05T08:51:23Z")

</div>

Yeah… that was new to me too. By the way, the same works for the Studio as well if you insert such snippet there.

---

<div class="post-metadata">

**Author:** ![Zachary\_Trabookis](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/zachary_trabookis/32/753_2.png) [@Zachary\_Trabookis](https://discuss.openedx.org/u/Zachary_Trabookis)\
**Post date:** [November 11, 2020, 9:45pm UTC](https://discuss.openedx.org/t/enable-comprehensive-theming-devstack-mako-template-overrides-not-working/3557/3 "2020-11-11T21:45:59Z")

</div>

@Tuchfarber @regis I added this pull request to include instructions on how to enable comprehensive theming for devstack. This hopefully will prevent issues with Mako template theme overrides from not working. If you can review this PR please do and make any recommended changes.

> <https://github.com/edx/devstack/pull/654>
