Skip to content

How set TEMPLATE_STRING_IF_INVALID #303

Open
@iyaozhen

Description

@iyaozhen

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions