Ticket #20482: 20482_docs-tutorial03_index-view-py.diff
File 20482_docs-tutorial03_index-view-py.diff, 533 bytes (added by , 11 years ago) |
---|
-
docs/intro/tutorial03.txt
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index 0bbfcdd..6976a25 100644
a b Put the following code in that template: 336 336 <p>No polls are available.</p> 337 337 {% endif %} 338 338 339 Now let's use that html template in our index view ::339 Now let's use that html template in our index view. Put the following code in your ``polls/views.py``:: 340 340 341 341 from django.http import HttpResponse 342 342 from django.template import Context, loader