mirror of
https://github.com/django/django.git
synced 2025-03-25 08:40:45 +00:00
[1.6.x] Fixed #22942 -- Noted that __init__.py files are required for management command detection.
Thanks Diego Cerdán for the suggestion. Backport of 54546cee88 from master
This commit is contained in:
parent
85f9745807
commit
837cad0f62
@ -26,6 +26,10 @@ directory whose name doesn't begin with an underscore. For example::
|
|||||||
tests.py
|
tests.py
|
||||||
views.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
|
In this example, the ``closepoll`` command will be made available to any project
|
||||||
that includes the ``polls`` application in :setting:`INSTALLED_APPS`.
|
that includes the ``polls`` application in :setting:`INSTALLED_APPS`.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user