diff options
| author | Simon Willison <simon@simonwillison.net> | 2008-09-11 02:57:31 +0000 |
|---|---|---|
| committer | Simon Willison <simon@simonwillison.net> | 2008-09-11 02:57:31 +0000 |
| commit | bc5cddc5c575d32dcfea239c1463bb0b0fc1ee09 (patch) | |
| tree | 671bd2207f8a37824e4d4f0b714989320c442545 /docs/intro/tutorial02.txt | |
| parent | 1c78bf4b985c58b19552f5060829b71c3df72344 (diff) | |
Clarified the bit in the tutorial about creating your first admin.py - fixes #8891
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9011 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro/tutorial02.txt')
| -rw-r--r-- | docs/intro/tutorial02.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt index 8ce9161854..3a962a9fee 100644 --- a/docs/intro/tutorial02.txt +++ b/docs/intro/tutorial02.txt @@ -97,17 +97,17 @@ Make the poll app modifiable in the admin But where's our poll app? It's not displayed on the admin index page. Just one thing to do: We need to tell the admin that ``Poll`` -objects have an admin interface. Edit the ``mysite/polls/admin.py`` file and -add the following to the bottom of the file:: +objects have an admin interface. Create a file called ``admin.py`` in your +``polls`` application and edit it to look like this:: from mysite.polls.models import Poll from django.contrib import admin admin.site.register(Poll) -Now reload the Django admin page to see your changes. Note that you don't have -to restart the development server -- the server will auto-reload your project, -so any modifications code will be seen immediately in your browser. +You will need to restart the development server to see your changes. Normally +the server will auto-reload itself every time you modify a file, but here the +action of creating a new file will not trigger the auto-reloading logic. Explore the free admin functionality ==================================== |
