Ticket #20482: 20482_docs-tutorial03_index-view-py.diff

File 20482_docs-tutorial03_index-view-py.diff, 533 bytes (added by Elena Williams, 11 years ago)

Adding 7 words to describe which file the code goes in.

  • 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:  
    336336        <p>No polls are available.</p>
    337337    {% endif %}
    338338
    339 Now let's use that html template in our index view::
     339Now let's use that html template in our index view. Put the following code in your ``polls/views.py``::
    340340
    341341    from django.http import HttpResponse
    342342    from django.template import Context, loader
Back to Top