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:
Adrian Holovaty 2005-07-21 15:36:43 +00:00
parent 3ff931848e
commit 8aa1645812
2 changed files with 6 additions and 11 deletions

View File

@ -94,12 +94,8 @@ file and make the following change to add an ``admin`` attribute::
) )
admin = meta.Admin() admin = meta.Admin()
Restart your development Web server, and reload the Django admin page. You'll Now reload the Django admin page to see your changes. Note that you don't have
have to restart the server each time you make a change to Python code -- but to restart the development server -- it auto-reloads code.
we're working on changing that.
You can stop the development server by hitting CONTROL-C (Unix) or CTRL-BREAK
(Windows).
Explore the free admin functionality Explore the free admin functionality
==================================== ====================================

View File

@ -135,8 +135,8 @@ and put the following Python code in it::
def index(request): def index(request):
return HttpResponse("Hello, world. You're at the poll index.") return HttpResponse("Hello, world. You're at the poll index.")
This is the simplest view possible. Restart your development server and go to This is the simplest view possible. Go to "/polls/" in your browser, and you
"/polls/". You should see your text. should see your text.
Now add the following view. It's slightly different, because it takes an 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 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> <p>No polls are available.</p>
{% endif %} {% endif %}
Templates are read from disk at each page request, so you don't have to restart Load the page in your Web browser, and you should see a bulleted-list
the server to see changes. Load the page in your Web browser, and you should containing the "What's up" poll from Tutorial 1.
see a bulleted-list containing the "What's up" poll from Tutorial 1.
Raising 404 Raising 404
=========== ===========