summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/flatpages.txt3
-rw-r--r--docs/topics/templates.txt10
-rw-r--r--docs/topics/testing.txt2
3 files changed, 6 insertions, 9 deletions
diff --git a/docs/ref/contrib/flatpages.txt b/docs/ref/contrib/flatpages.txt
index a99f75eb2d..c01130067b 100644
--- a/docs/ref/contrib/flatpages.txt
+++ b/docs/ref/contrib/flatpages.txt
@@ -170,8 +170,7 @@ Here's a sample :file:`flatpages/default.html` template:
.. code-block:: html+django
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
- "http://www.w3.org/TR/REC-html40/loose.dtd">
+ <!DOCTYPE html>
<html>
<head>
<title>{{ flatpage.title }}</title>
diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt
index 3b641fb58e..3f56c9ea01 100644
--- a/docs/topics/templates.txt
+++ b/docs/topics/templates.txt
@@ -259,9 +259,8 @@ defines **blocks** that child templates can override.
It's easiest to understand template inheritance by starting with an example::
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <!DOCTYPE html>
+ <html lang="en">
<head>
<link rel="stylesheet" href="style.css" />
<title>{% block title %}My amazing site{% endblock %}</title>
@@ -313,9 +312,8 @@ in ``base.html`` and replace those blocks with the contents of the child
template. Depending on the value of ``blog_entries``, the output might look
like::
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <!DOCTYPE html>
+ <html lang="en">
<head>
<link rel="stylesheet" href="style.css" />
<title>My amazing blog</title>
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt
index 64e4707350..fb9f6e53b9 100644
--- a/docs/topics/testing.txt
+++ b/docs/topics/testing.txt
@@ -615,7 +615,7 @@ Web pages::
200
>>> response = c.get('/customer/details/')
>>> response.content
- '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...'
+ '<!DOCTYPE html...'
As this example suggests, you can instantiate ``Client`` from within a session
of the Python interactive interpreter.