diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-09-02 17:48:18 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-09-02 17:48:18 +0000 |
| commit | 4e2f910ff1d343c994fed6847ae0030f18e9843b (patch) | |
| tree | d7b0aa5dcfee451e8a660f613e0368b08259ecdc /docs/tutorial04.txt | |
| parent | 9f125641687698c5ec69991222a7126202b2a91b (diff) | |
Added link to request-and-response documentation from tutorial04
git-svn-id: http://code.djangoproject.com/svn/django/trunk@603 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial04.txt')
| -rw-r--r-- | docs/tutorial04.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/tutorial04.txt b/docs/tutorial04.txt index 631b3e87af..c16ccb5b69 100644 --- a/docs/tutorial04.txt +++ b/docs/tutorial04.txt @@ -102,6 +102,9 @@ This code includes a few things we haven't covered yet in this tutorial: ``HttpResponseRedirect`` after successfully dealing with POST data. This tip isn't specific to Django; it's just good Web development practice. +As mentioned in Tutorial 3, ``request`` is a ``HTTPRequest`` object. For more +on ``HTTPRequest`` objects, see the `request and response documentation`_. + After somebody votes in a poll, the ``vote()`` view redirects to the results page for the poll. Let's write that view:: @@ -133,6 +136,8 @@ Now, go to ``/polls/1/`` in your browser and vote in the poll. You should see a results page that gets updated each time you vote. If you submit the form without having chosen a choice, you should see the error message. +.. _request and response documentation: http://www.djangoproject.com/documentation/request_response/ + Use generic views: Less code is better ====================================== |
