Kaydet (Commit) 54546cee authored tarafından Tim Graham's avatar Tim Graham

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

Thanks Diego Cerdán for the suggestion.
üst e6b3d6c2
......@@ -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`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment