mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Corrected docs to say that all templates are text strings.
Support for bytestring templates was removed in 3a148f958dddd97c1379081118c30fbede6b6bc4.
This commit is contained in:
parent
6de7f9ec60
commit
3212008ba6
@ -270,11 +270,9 @@ querysets are identical::
|
|||||||
Templates
|
Templates
|
||||||
=========
|
=========
|
||||||
|
|
||||||
You can use either strings or UTF-8 bytestrings when creating templates
|
Use strings when creating templates manually::
|
||||||
manually::
|
|
||||||
|
|
||||||
from django.template import Template
|
from django.template import Template
|
||||||
t1 = Template(b'This is a bytestring template.')
|
|
||||||
t2 = Template('This is a string template.')
|
t2 = Template('This is a string template.')
|
||||||
|
|
||||||
But the common case is to read templates from the filesystem, and this creates
|
But the common case is to read templates from the filesystem, and this creates
|
||||||
|
Loading…
x
Reference in New Issue
Block a user