Changed tutorial docs to account for auto-reload on the development server
git-svn-id: http://code.djangoproject.com/svn/django/trunk@274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3ff931848e
commit
8aa1645812
|
@ -94,12 +94,8 @@ file and make the following change to add an ``admin`` attribute::
|
|||
)
|
||||
admin = meta.Admin()
|
||||
|
||||
Restart your development Web server, and reload the Django admin page. You'll
|
||||
have to restart the server each time you make a change to Python code -- but
|
||||
we're working on changing that.
|
||||
|
||||
You can stop the development server by hitting CONTROL-C (Unix) or CTRL-BREAK
|
||||
(Windows).
|
||||
Now reload the Django admin page to see your changes. Note that you don't have
|
||||
to restart the development server -- it auto-reloads code.
|
||||
|
||||
Explore the free admin functionality
|
||||
====================================
|
||||
|
|
|
@ -135,8 +135,8 @@ and put the following Python code in it::
|
|||
def index(request):
|
||||
return HttpResponse("Hello, world. You're at the poll index.")
|
||||
|
||||
This is the simplest view possible. Restart your development server and go to
|
||||
"/polls/". You should see your text.
|
||||
This is the simplest view possible. Go to "/polls/" in your browser, and you
|
||||
should see your text.
|
||||
|
||||
Now add the following view. It's slightly different, because it takes an
|
||||
argument (which, remember, is passed in from whatever was captured by the
|
||||
|
@ -229,9 +229,8 @@ Put the following code in that template::
|
|||
<p>No polls are available.</p>
|
||||
{% endif %}
|
||||
|
||||
Templates are read from disk at each page request, so you don't have to restart
|
||||
the server to see changes. Load the page in your Web browser, and you should
|
||||
see a bulleted-list containing the "What's up" poll from Tutorial 1.
|
||||
Load the page in your Web browser, and you should see a bulleted-list
|
||||
containing the "What's up" poll from Tutorial 1.
|
||||
|
||||
Raising 404
|
||||
===========
|
||||
|
|
Loading…
Reference in New Issue