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:
parent
8c6f5c6f05
commit
1b58b77f0d
|
@ -415,7 +415,7 @@ translated, here's what to do:
|
|||
|
||||
* Repeat the last two steps for the ``djangojs`` domain (by appending the
|
||||
``-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.
|
||||
|
||||
|
|
|
@ -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. Create a file called ``admin.py`` in your
|
||||
``polls`` application and edit it to look like this::
|
||||
objects have an admin interface. To do this, create a file called
|
||||
``admin.py`` in your ``polls`` directory, and edit it to look like this::
|
||||
|
||||
from mysite.polls.models import Poll
|
||||
from django.contrib import admin
|
||||
|
||||
admin.site.register(Poll)
|
||||
|
||||
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.
|
||||
You'll need to restart the development server to see your changes. Normally,
|
||||
the server auto-reloads code every time you modify a file, but the action of
|
||||
creating a new file doesn't trigger the auto-reloading logic.
|
||||
|
||||
Explore the free admin functionality
|
||||
====================================
|
||||
|
|
Loading…
Reference in New Issue