diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-09-13 06:32:31 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-09-13 06:32:31 +0000 |
| commit | 5312e7b40a6b3a4c20924a91f584052aa8b550ad (patch) | |
| tree | 899f2b8acee003b0639809150f0da9b6227ccc52 /docs/ref | |
| parent | 91bbfc57df818a8b5c70c80c5b79adc044be605a (diff) | |
[1.1.X] Fixed #9236 -- Added documentation on the dependencies of the admin.
Merge of r11543 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11565 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index c23a37264b..823ae8bf3f 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -27,19 +27,24 @@ Overview 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 ------------ |
