[1.5.x] Fixed broken links, round 4. refs #19516

Backport of 067505ad19 from master
This commit is contained in:
Tim Graham 2012-12-29 10:35:12 -05:00
parent d529d413f7
commit 9e5ada79bf
30 changed files with 164 additions and 155 deletions

View file

@ -2,6 +2,8 @@
Writing custom django-admin commands
====================================
.. module:: django.core.management
Applications can register their own actions with ``manage.py``. For example,
you might want to add a ``manage.py`` action for a Django app that you're
distributing. In this document, we will be building a custom ``closepoll``
@ -261,6 +263,13 @@ the :meth:`~BaseCommand.handle` method must be implemented.
The actual logic of the command. Subclasses must implement this method.
.. method:: BaseCommand.validate(app=None, display_num_errors=False)
Validates the given app, raising :class:`CommandError` for any errors.
If ``app`` is None, then all installed apps are validated.
.. _ref-basecommand-subclasses:
BaseCommand subclasses