Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #22942 -- Noted that __init__.py files are required for managem…

…ent command detection.

Thanks Diego Cerdán for the suggestion.
  • Loading branch information...
commit 54546cee88f1db4e7e0ad75ebb9672c118b2236c 1 parent e6b3d6c
@timgraham timgraham authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/howto/custom-management-commands.txt
View
4 docs/howto/custom-management-commands.txt
@@ -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`.
Please sign in to comment.
Something went wrong with that request. Please try again.