summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-16 22:25:20 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-16 22:25:20 +0000
commit7c6071861e6402be75dd6bcfe155a16799e01eba (patch)
tree2f3a4798f865b2f78ba34c3c730987f5baa6e66d /docs
parenta949f9ec7d8bdd348f628c2d579f4cc633c56e56 (diff)
downloaddjango-7c6071861e6402be75dd6bcfe155a16799e01eba.tar.gz
Fixed #8132 -- Updated tutorial 2 to describe the current way to customise the
main admin page. Based on a patch from julien. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8416 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/tutorial02.txt15
1 files changed, 7 insertions, 8 deletions
diff --git a/docs/tutorial02.txt b/docs/tutorial02.txt
index 7ed04be643..0b17593165 100644
--- a/docs/tutorial02.txt
+++ b/docs/tutorial02.txt
@@ -435,18 +435,17 @@ Customize the admin index page
On a similar note, you might want to customize the look and feel of the Django
admin index page.
-By default, it displays all available apps, according to your ``INSTALLED_APPS``
-setting. But the order in which it displays things is random, and you may want
-to make significant changes to the layout. After all, the index is probably the
-most important page of the admin, and it should be easy to use.
+By default, it displays all the apps in your ``INSTALLED_APPS`` setting that
+have been registered with the admin application, in alphabetical order. You
+may want to make significant changes to the layout. After all, the index is
+probably the most important page of the admin, and it should be easy to use.
The template to customize is ``admin/index.html``. (Do the same as with
``admin/base_site.html`` in the previous section -- copy it from the default
directory to your custom template directory.) Edit the file, and you'll see it
-uses a template tag called ``{% get_admin_app_list as app_list %}``. That's the
-magic that retrieves every installed Django app. Instead of using that, you can
-hard-code links to object-specific admin pages in whatever way you think is
-best.
+uses a template variable called ``app_list``. That variable contains every
+installed Django app. Instead of using that, you can hard-code links to
+object-specific admin pages in whatever way you think is best.
Django offers another shortcut in this department. Run the command
``python manage.py adminindex polls`` to get a chunk of template code for