0
0
mirror of https://github.com/django/django.git synced 2024-11-29 14:46:18 +01:00

Fixed #22942 -- Noted that __init__.py files are required for management command detection.

Thanks Diego Cerdán for the suggestion.
This commit is contained in:
Tim Graham 2014-07-07 18:04:00 -04:00
parent e6b3d6c22f
commit 54546cee88

View File

@ -26,6 +26,10 @@ directory whose name doesn't begin with an underscore. For example::
tests.py
views.py
On Python 2, be sure to include ``__init__.py`` files in both the
``management`` and ``management/commands`` directories as done above or your
command will not be detected.
In this example, the ``closepoll`` command will be made available to any project
that includes the ``polls`` application in :setting:`INSTALLED_APPS`.