Edited docs changes from [9010] and [9011]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9014 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2008-09-11 03:32:28 +00:00
parent 8c6f5c6f05
commit 1b58b77f0d
2 changed files with 30 additions and 30 deletions

View File

@ -415,7 +415,7 @@ translated, here's what to do:
* Repeat the last two steps for the ``djangojs`` domain (by appending the * Repeat the last two steps for the ``djangojs`` domain (by appending the
``-d djangojs`` command line option to the ``django-admin.py`` ``-d djangojs`` command line option to the ``django-admin.py``
invocations.) invocations).
* Create a diff of the ``.po`` file(s) against the current Subversion trunk. * Create a diff of the ``.po`` file(s) against the current Subversion trunk.

View File

@ -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. 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`` Just one thing to do: We need to tell the admin that ``Poll``
objects have an admin interface. Create a file called ``admin.py`` in your objects have an admin interface. To do this, create a file called
``polls`` application and edit it to look like this:: ``admin.py`` in your ``polls`` directory, and edit it to look like this::
from mysite.polls.models import Poll from mysite.polls.models import Poll
from django.contrib import admin from django.contrib import admin
admin.site.register(Poll) admin.site.register(Poll)
You will need to restart the development server to see your changes. Normally You'll 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 the server auto-reloads code every time you modify a file, but the action of
action of creating a new file will not trigger the auto-reloading logic. creating a new file doesn't trigger the auto-reloading logic.
Explore the free admin functionality Explore the free admin functionality
==================================== ====================================