mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #20423 -- Doc'd that DTL variable names may not be a number.
This commit is contained in:
parent
8908846444
commit
7587139d35
1 changed files with 4 additions and 4 deletions
|
@ -79,10 +79,10 @@ Variables
|
|||
Variables look like this: ``{{ variable }}``. When the template engine
|
||||
encounters a variable, it evaluates that variable and replaces it with the
|
||||
result. Variable names consist of any combination of alphanumeric characters
|
||||
and the underscore (``"_"``) but may not start with an underscore. The dot
|
||||
(``"."``) also appears in variable sections, although that has a special
|
||||
meaning, as indicated below. Importantly, *you cannot have spaces or
|
||||
punctuation characters in variable names.*
|
||||
and the underscore (``"_"``) but may not start with an underscore, and may not
|
||||
be a number. The dot (``"."``) also appears in variable sections, although that
|
||||
has a special meaning, as indicated below. Importantly, *you cannot have spaces
|
||||
or punctuation characters in variable names.*
|
||||
|
||||
Use a dot (``.``) to access attributes of a variable.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue