Ticket #8891: adding-admin.diff
File adding-admin.diff, 763 bytes (added by , 16 years ago) |
---|
-
docs/intro/tutorial02.txt
97 97 But where's our poll app? It's not displayed on the admin index page. 98 98 99 99 Just one thing to do: We need to tell the admin that ``Poll`` 100 objects have an admin interface. Edit the ``mysite/polls/admin.py`` file and101 add the following to the bottom of the file::100 objects have an admin interface. Create a file called ``admin.py`` in your 101 ``polls`` application and edit it to look like this:: 102 102 103 from django.contrib import admin 103 104 from mysite.polls.models import Poll 104 from django.contrib import admin105 105 106 106 admin.site.register(Poll) 107 107