Commit 1b58b77f authored by Adrian Holovaty's avatar Adrian Holovaty
Browse files

Edited docs changes from [9010] and [9011]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9014 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 8c6f5c6f
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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.

+24 −24
Original line number Diff line number Diff line
@@ -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
====================================