Skip to content

Commit

Permalink
Removed outdated "adminindex" command -- the same behavior is now far…
Browse files Browse the repository at this point in the history
… easier and better done in a template, or perhaps a custom `AdminSite.index` function. Refs #5500.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacobian committed Aug 25, 2008
1 parent ab7eabf commit 7e06b69
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 54 deletions.
34 changes: 0 additions & 34 deletions django/core/management/commands/adminindex.py

This file was deleted.

4 changes: 0 additions & 4 deletions docs/intro/tutorial02.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -449,9 +449,5 @@ uses a template variable called ``app_list``. That variable contains every
installed Django app. Instead of using that, you can hard-code links to installed Django app. Instead of using that, you can hard-code links to
object-specific admin pages in whatever way you think is best. 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 inclusion in
the admin index template. It's a useful starting point.

When you're comfortable with the admin site, read :ref:`part 3 of this tutorial When you're comfortable with the admin site, read :ref:`part 3 of this tutorial
<intro-tutorial03>` to start working on public poll views. <intro-tutorial03>` to start working on public poll views.
3 changes: 0 additions & 3 deletions docs/man/django-admin.1
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ script found at the top level of each Django project directory.
.sp .sp
.SH "ACTIONS" .SH "ACTIONS"
.TP .TP
.BI "adminindex [" "appname ..." "]"
Prints the admin\-index template snippet for the given app name(s).
.TP
.BI cleanup .BI cleanup
Cleans out old data from the database (only expired sessions at the moment). Cleans out old data from the database (only expired sessions at the moment).
.TP .TP
Expand Down
11 changes: 0 additions & 11 deletions docs/ref/django-admin.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -95,17 +95,6 @@ that ``django-admin.py`` should print to the console.
Available subcommands Available subcommands
===================== =====================


adminindex
----------

.. django-admin:: adminindex <appname appname ...>

Prints the admin-index template snippet for the given app name(s).

Use admin-index template snippets if you want to customize the look and feel of
your admin's index page. See :ref:`Tutorial 2 <intro-tutorial02>` for more
information.

cleanup cleanup
------- -------


Expand Down
4 changes: 2 additions & 2 deletions extras/django_bash_completion
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ _django_completion()
# Standalone options # Standalone options
opts="--help --settings --pythonpath --noinput --noreload --format --indent --verbosity --adminmedia --version --locale --domain" opts="--help --settings --pythonpath --noinput --noreload --format --indent --verbosity --adminmedia --version --locale --domain"
# Actions # Actions
actions="adminindex createcachetable createsuperuser compilemessages \ actions="createcachetable createsuperuser compilemessages \
dbshell diffsettings dumpdata flush inspectdb loaddata \ dbshell diffsettings dumpdata flush inspectdb loaddata \
makemessages reset runfcgi runserver shell sql sqlall sqlclear \ makemessages reset runfcgi runserver shell sql sqlall sqlclear \
sqlcustom sqlflush sqlindexes sqlreset sqlsequencereset startapp \ sqlcustom sqlflush sqlindexes sqlreset sqlsequencereset startapp \
Expand Down Expand Up @@ -90,7 +90,7 @@ _django_completion()
esac esac
else else
case ${prev} in case ${prev} in
adminindex|dumpdata|reset| \ dumpdata|reset| \
sql|sqlall|sqlclear|sqlcustom|sqlindexes| \ sql|sqlall|sqlclear|sqlcustom|sqlindexes| \
sqlreset|sqlsequencereset|test) sqlreset|sqlsequencereset|test)
# App completion # App completion
Expand Down

0 comments on commit 7e06b69

Please sign in to comment.