浏览代码

Corrected docs to say that all templates are text strings.

Support for bytestring templates was removed in
3a148f958dddd97c1379081118c30fbede6b6bc4.
Jon Dufresne 6 年之前
父节点
当前提交
3212008ba6
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      docs/ref/unicode.txt

+ 1 - 3
docs/ref/unicode.txt

@@ -270,11 +270,9 @@ querysets are identical::
 Templates
 =========
 
-You can use either strings or UTF-8 bytestrings when creating templates
-manually::
+Use strings when creating templates manually::
 
     from django.template import Template
-    t1 = Template(b'This is a bytestring template.')
     t2 = Template('This is a string template.')
 
 But the common case is to read templates from the filesystem, and this creates