Changeset 8010
- Timestamp:
- 07/20/08 13:20:54 (6 months ago)
- Files:
-
- django/trunk/docs/admin.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/admin.txt
r7983 r8010 19 19 ======== 20 20 21 There are four steps in activating the Django admin site: 22 23 1. Determine which of your application's models should be editable in the 21 There are five steps in activating the Django admin site: 22 23 1. Add ``django.contrib.admin`` to your ``INSTALLED_APPS`` setting. 24 25 2. Determine which of your application's models should be editable in the 24 26 admin interface. 25 27 26 2. For each of those models, optionally create a ``ModelAdmin`` class that28 3. For each of those models, optionally create a ``ModelAdmin`` class that 27 29 encapsulates the customized admin functionality and options for that 28 30 particular model. 29 31 30 3. Instantiate an ``AdminSite`` and tell it about each of your models and32 4. Instantiate an ``AdminSite`` and tell it about each of your models and 31 33 ``ModelAdmin`` classes. 32 34 33 4. Hook the ``AdminSite`` instance into your URLconf.35 5. Hook the ``AdminSite`` instance into your URLconf. 34 36 35 37 ``ModelAdmin`` objects
