Fixed typo in docs/ref/templates/api.txt.

This commit is contained in:
Josh Schneier 2018-08-06 19:20:17 -04:00 committed by Tim Graham
parent a9f5652113
commit 53e8570522
1 changed files with 4 additions and 4 deletions

View File

@ -371,10 +371,10 @@ replaced with the name of the invalid variable.
While ``string_if_invalid`` can be a useful debugging tool, it is a bad While ``string_if_invalid`` can be a useful debugging tool, it is a bad
idea to turn it on as a 'development default'. idea to turn it on as a 'development default'.
Many templates, including some of the Django's templates, rely upon the Many templates, including some of Django's, rely upon the silence of the
silence of the template system when a nonexistent variable is encountered. template system when a nonexistent variable is encountered. If you assign a
If you assign a value other than ``''`` to ``string_if_invalid``, you will value other than ``''`` to ``string_if_invalid``, you will experience
experience rendering problems with these templates and sites. rendering problems with these templates and sites.
Generally, ``string_if_invalid`` should only be enabled in order to debug Generally, ``string_if_invalid`` should only be enabled in order to debug
a specific template problem, then cleared once debugging is complete. a specific template problem, then cleared once debugging is complete.