mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
[1.5.x] Fixed broken links, round 4. refs #19516
Backport of 067505ad19
from master
This commit is contained in:
parent
d529d413f7
commit
9e5ada79bf
30 changed files with 164 additions and 155 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue