Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How set TEMPLATE_STRING_IF_INVALID #303

Open
iyaozhen opened this issue Jul 6, 2022 · 1 comment
Open

How set TEMPLATE_STRING_IF_INVALID #303

iyaozhen opened this issue Jul 6, 2022 · 1 comment

Comments

@iyaozhen
Copy link

iyaozhen commented Jul 6, 2022

My tpl is "t {{no_value}}" and not set no_value in context, it return "t ", now.

If a variable that doesn’t exist, I hope the template system will insert the raw token. e.g. "t {{no_value}}". It is useful for debug.

https://django.readthedocs.io/en/1.7.x/ref/settings.html#std:setting-TEMPLATE_STRING_IF_INVALID

@flosch
Copy link
Owner

flosch commented Feb 1, 2023

That's a feature not yet supported. I'll add it to the withlist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants