From 490f4fa574b7d940fea1acaa2b35a87c21359c60 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Wed, 3 Oct 2018 03:05:17 -0500 Subject: [2.1.x] Corrected docs to say that all templates are text strings. Support for bytestring templates was removed in 3a148f958dddd97c1379081118c30fbede6b6bc4. Backport of 3212008ba602668f7923852454b508a400dd732e from master --- docs/ref/unicode.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/unicode.txt b/docs/ref/unicode.txt index 17c5edfad6..5961b3d960 100644 --- a/docs/ref/unicode.txt +++ b/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 -- cgit v1.3