Author: russellm
Date: 2009-09-13 01:32:31 -0500 (Sun, 13 Sep 2009)
New Revision: 11565
Modified:
django/branches/releases/1.1.X/docs/ref/contrib/admin/index.txt
Log:
[1.1.X] Fixed #9236 -- Added documentation on the dependencies of the admin.
Merge of r11543 from trunk.
Modified: django/branches/releases/1.1.X/docs/ref/contrib/admin/index.txt
===================================================================
--- django/branches/releases/1.1.X/docs/ref/contrib/admin/index.txt
2009-09-13 06:32:19 UTC (rev 11564)
+++ django/branches/releases/1.1.X/docs/ref/contrib/admin/index.txt
2009-09-13 06:32:31 UTC (rev 11565)
@@ -27,19 +27,24 @@
There are five steps in activating the Django admin site:
- 1. Add ``django.contrib.admin`` to your ``INSTALLED_APPS`` setting.
+ 1. Add :class:``django.contrib.admin`` to your :setting:``INSTALLED_APPS``
+ setting.
- 2. Determine which of your application's models should be editable in the
+ 2. Admin has two dependencies - :class:``django.contrib.auth`` and
+ :class:``django.contrib.contenttypes``. If these applications are not
+ in your :setting:``INSTALLED_APPS`` list, add them.
+
+ 3. Determine which of your application's models should be editable in the
admin interface.
- 3. For each of those models, optionally create a ``ModelAdmin`` class that
+ 4. For each of those models, optionally create a ``ModelAdmin`` class that
encapsulates the customized admin functionality and options for that
particular model.
- 4. Instantiate an ``AdminSite`` and tell it about each of your models and
+ 5. Instantiate an ``AdminSite`` and tell it about each of your models and
``ModelAdmin`` classes.
- 5. Hook the ``AdminSite`` instance into your URLconf.
+ 6. Hook the ``AdminSite`` instance into your URLconf.
Other topics
------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---