Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed tutorial docs to account for auto-reload on the development s…

…erver

git-svn-id: http://code.djangoproject.com/svn/django/trunk@274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8aa16458126f48a474a0f17b225abb822e11790e 1 parent 3ff9318
Adrian Holovaty adrianholovaty authored
Showing with 6 additions and 11 deletions.
  1. +2 −6 docs/tutorial02.txt
  2. +4 −5 docs/tutorial03.txt
8 docs/tutorial02.txt
View
@@ -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
====================================
9 docs/tutorial03.txt
View
@@ -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
===========
Please sign in to comment.
Something went wrong with that request. Please try again.