overhangio / tutor-indigo

An elegant, customizable theme for Open edX
GNU Affero General Public License v3.0
74 stars 276 forks source link

Use django templates #36

Closed cristianMeli closed 2 years ago

cristianMeli commented 2 years ago

Hi there!

I am trying to use this plugin as a starting point for my own theme plugin. I have my own templates (for lms), so what I did was to copy them inside templates/indigo/lms/templates. The issue is that after installing and enabling the plugin, when I do tutor config save I get this error: jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'load'. That is because I have Django templates with {% load i18n %} declarations and some others.

So my question is: It is possible to use Django templates in my tutor theme plugin?

I saw here a possible workaround, that is use {% raw %} and {% endraw %} tags . I don't know if this is the right way to use Django templates or if I am missing some configuration.

Regards!!

regisb commented 2 years ago

Please don't use Github issues for feature requests or for support. Instead, you should create a new topic in the official Open edX forum: https://discuss.openedx.org/