Changeset 6602
- Timestamp:
- 10/23/07 14:11:15 (1 year ago)
- Files:
-
- django/trunk/docs/django-admin.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/django-admin.txt
r6400 r6602 742 742 **New in Django development version** 743 743 744 If you want to add an action of your own to ``manage.py``, you can. 745 Simply add a ``management/commands`` directory to your application. 746 Each python module in that directory will be discovered and registered as 744 Applications can register their own actions with ``manage.py``. For example, 745 you might want to add a ``manage.py`` action for a Django app that you're 746 distributing. 747 748 To do this, just add a ``management/commands`` directory to your application. 749 Each Python module in that directory will be auto-discovered and registered as 747 750 a command that can be executed as an action when you run ``manage.py``:: 748 751 749 /fancy_blog752 blog/ 750 753 __init__.py 751 754 models.py 752 /management755 management/ 753 756 __init__.py 754 /commands757 commands/ 755 758 __init__.py 756 759 explode.py 757 760 views.py 758 761 759 In this example, ``explode`` command will be made available to any project762 In this example, the ``explode`` command will be made available to any project 760 763 that includes the ``fancy_blog`` application in ``settings.INSTALLED_APPS``. 761 764
