Added link to request-and-response documentation from tutorial03

git-svn-id: http://code.djangoproject.com/svn/django/trunk@602 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-09-02 17:41:40 +00:00
parent 324f717c5e
commit 9f12564168
1 changed files with 4 additions and 1 deletions

View File

@ -55,10 +55,12 @@ comparing the requested URL against each regular expression until it finds one
that matches. that matches.
When it finds a match, Django calls the Python callback function, with an When it finds a match, Django calls the Python callback function, with an
``HTTPRequest`` request as the first argument, any "captured" values from the ``HTTPRequest`` object as the first argument, any "captured" values from the
regular expression as keyword arguments, and, optionally, arbitrary keyword regular expression as keyword arguments, and, optionally, arbitrary keyword
arguments from the dictionary (an optional third item in the tuple). arguments from the dictionary (an optional third item in the tuple).
For more on ``HTTPRequest`` objects, see the `request and response documentation`_.
When you ran ``django-admin.py startproject myproject`` at the beginning of When you ran ``django-admin.py startproject myproject`` at the beginning of
Tutorial 1, it created a default URLconf in ``myproject/settings/urls/main.py``. Tutorial 1, it created a default URLconf in ``myproject/settings/urls/main.py``.
It also automatically set your ``ROOT_URLCONF`` setting to point at that file:: It also automatically set your ``ROOT_URLCONF`` setting to point at that file::
@ -110,6 +112,7 @@ time the URLconf module is loaded. They're super fast.
.. _Wikipedia's entry: http://en.wikipedia.org/wiki/Regular_expression .. _Wikipedia's entry: http://en.wikipedia.org/wiki/Regular_expression
.. _Python documentation: http://www.python.org/doc/current/lib/module-re.html .. _Python documentation: http://www.python.org/doc/current/lib/module-re.html
.. _request and response documentation: http://www.djangoproject.com/documentation/request_response/
Write your first view Write your first view
===================== =====================