diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2006-06-21 23:06:24 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2006-06-21 23:06:24 +0000 |
| commit | a490d6b4f69fc8f43a89d18b091bd3e97b145de6 (patch) | |
| tree | fcc5912e84169ba721e57bb25832a8e7053c2d98 /docs/request_response.txt | |
| parent | a159f660fef417d3f165e72678db8e3b90153006 (diff) | |
Fixed a few small rst errors in request/response and fastcgi docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/request_response.txt')
| -rw-r--r-- | docs/request_response.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/request_response.txt b/docs/request_response.txt index 607839350e..1a37bb1e89 100644 --- a/docs/request_response.txt +++ b/docs/request_response.txt @@ -49,7 +49,8 @@ All attributes except ``session`` should be considered read-only. It's possible that a request can come in via POST with an empty ``POST`` dictionary -- if, say, a form is requested via the POST HTTP method but does not include form data. Therefore, you shouldn't use ``if request.POST`` - to check for use of the POST method; instead, check `method`_. + to check for use of the POST method; instead, use ``if reuqest.method == + "POST"`` (see above). Note: ``POST`` does *not* include file-upload information. See ``FILES``. |
