summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial06.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/intro/tutorial06.txt')
-rw-r--r--docs/intro/tutorial06.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/intro/tutorial06.txt b/docs/intro/tutorial06.txt
index 2a1567915d..a88c33026a 100644
--- a/docs/intro/tutorial06.txt
+++ b/docs/intro/tutorial06.txt
@@ -56,7 +56,8 @@ reference the path for templates.
Put the following code in that stylesheet (``polls/static/polls/style.css``):
-.. code-block:: css
+.. snippet:: css
+ :filename: polls/static/polls/style.css
li a {
color: green;
@@ -64,7 +65,8 @@ Put the following code in that stylesheet (``polls/static/polls/style.css``):
Next, add the following at the top of ``polls/templates/polls/index.html``:
-.. code-block:: html+django
+.. snippet:: html+django
+ :filename: polls/templates/polls/index.html
{% load staticfiles %}
@@ -88,7 +90,8 @@ called ``background.gif``. In other words, put your image in
Then, add to your stylesheet (``polls/static/polls/style.css``):
-.. code-block:: css
+.. snippet:: css
+ :filename: polls/static/polls/style.css
body {
background: white url("images/background.gif") no-repeat right bottom;