mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Deprecated TEMPLATE_STRING_IF_INVALID.
This commit is contained in:
parent
3dc01aaaaf
commit
d3a982556d
9 changed files with 44 additions and 33 deletions
|
@ -116,9 +116,9 @@ Use a dot (``.``) to access attributes of a variable.
|
|||
In the above example, ``{{ section.title }}`` will be replaced with the
|
||||
``title`` attribute of the ``section`` object.
|
||||
|
||||
If you use a variable that doesn't exist, the template system will insert
|
||||
the value of the :setting:`TEMPLATE_STRING_IF_INVALID` setting, which is set
|
||||
to ``''`` (the empty string) by default.
|
||||
If you use a variable that doesn't exist, the template system will insert the
|
||||
value of the ``string_if_invalid`` option, which is set to ``''`` (the empty
|
||||
string) by default.
|
||||
|
||||
Note that "bar" in a template expression like ``{{ foo.bar }}`` will be
|
||||
interpreted as a literal string and not using the value of the variable "bar",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue