Kaydet (Commit) 490f4fa5 authored tarafından Jon Dufresne's avatar Jon Dufresne Kaydeden (comit) Carlton Gibson

[2.1.x] Corrected docs to say that all templates are text strings.

Support for bytestring templates was removed in
3a148f95.
Backport of 3212008b from master
üst 95c2ce67
...@@ -270,11 +270,9 @@ querysets are identical:: ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment