Fixed #16044 -- Corrected a copy-and-paste error in the opening paragraph of the views topic guide. Thanks to aplanas for the report and suggested wording.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8ecda079a8
commit
840530cc55
|
@ -8,9 +8,9 @@ of a Web page, or a redirect, or a 404 error, or an XML document, or an image .
|
||||||
. . or anything, really. The view itself contains whatever arbitrary logic is
|
. . or anything, really. The view itself contains whatever arbitrary logic is
|
||||||
necessary to return that response. This code can live anywhere you want, as long
|
necessary to return that response. This code can live anywhere you want, as long
|
||||||
as it's on your Python path. There's no other requirement--no "magic," so to
|
as it's on your Python path. There's no other requirement--no "magic," so to
|
||||||
speak. For the sake of putting the code *somewhere*, let's create a file called
|
speak. For the sake of putting the code *somewhere*, the convention is to
|
||||||
``views.py`` in the ``mysite`` directory, which you created in the previous
|
put views in a file called ``views.py``, placed in your project or
|
||||||
chapter.
|
application directory.
|
||||||
|
|
||||||
A simple view
|
A simple view
|
||||||
=============
|
=============
|
||||||
|
|
Loading…
Reference in New Issue