You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to update my cookiecutter for Django projects. I created a default base.html file inside the main templates folder. This HTML have Django tags in it. Something like:
{%loadstatic%}
The problem is that Cookiecutter thinks it's a Jinja2 tag and complains it cannot find it.
I tried escaping with the {% raw %} tag as mentioned in the docs but it didn't work.
{%raw%}
{%loadstatic%}
{%endraw%}
Yet, it still complains:
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'load'.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I was trying to update my cookiecutter for Django projects. I created a default
base.html
file inside the maintemplates
folder. This HTML have Django tags in it. Something like:The problem is that Cookiecutter thinks it's a Jinja2 tag and complains it cannot find it.
I tried escaping with the
{% raw %}
tag as mentioned in the docs but it didn't work.Yet, it still complains:
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'load'.
Any ideas?
TIA
Beta Was this translation helpful? Give feedback.
All reactions