diff --git a/docs/howto/custom-management-commands.txt b/docs/howto/custom-management-commands.txt
index a844e32..1de256a 100644
a
|
b
|
command for the ``polls`` application from the
|
9 | 9 | :doc:`tutorial</intro/tutorial01>`. |
10 | 10 | |
11 | 11 | To do this, just add a ``management/commands`` directory to the application. |
12 | | Each Python module in that directory will be auto-discovered and registered as |
13 | | a command that can be executed as an action when you run ``manage.py``:: |
| 12 | Each Python module in that directory will be auto-discovered. Modules having |
| 13 | names not starting with an underscore will be registered as commands that can be |
| 14 | executed as an action when you run ``manage.py``:: |
14 | 15 | |
15 | 16 | polls/ |
16 | 17 | __init__.py |
… |
… |
a command that can be executed as an action when you run ``manage.py``::
|
19 | 20 | __init__.py |
20 | 21 | commands/ |
21 | 22 | __init__.py |
| 23 | _private.py |
22 | 24 | closepoll.py |
23 | 25 | tests.py |
24 | 26 | views.py |
… |
… |
a command that can be executed as an action when you run ``manage.py``::
|
26 | 28 | In this example, the ``closepoll`` command will be made available to any project |
27 | 29 | that includes the ``polls`` application in :setting:`INSTALLED_APPS`. |
28 | 30 | |
| 31 | The ``_private.py`` module will not be available as a management command. |
| 32 | |
29 | 33 | The ``closepoll.py`` module has only one requirement -- it must define a class |
30 | 34 | ``Command`` that extends :class:`BaseCommand` or one of its |
31 | 35 | :ref:`subclasses<ref-basecommand-subclasses>`. |