Django

Code

Changeset 6602

Show
Ignore:
Timestamp:
10/23/07 14:11:15 (1 year ago)
Author:
adrian
Message:

Edited docs/django-admin.txt changes from [6400]. (I'm behind on editing!)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/django-admin.txt

    r6400 r6602  
    742742**New in Django development version** 
    743743 
    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 
     744Applications can register their own actions with ``manage.py``. For example, 
     745you might want to add a ``manage.py`` action for a Django app that you're 
     746distributing. 
     747 
     748To do this, just add a ``management/commands`` directory to your application. 
     749Each Python module in that directory will be auto-discovered and registered as 
    747750a command that can be executed as an action when you run ``manage.py``:: 
    748751 
    749     /fancy_blog 
     752    blog/ 
    750753        __init__.py 
    751754        models.py 
    752         /management 
     755        management/ 
    753756            __init__.py 
    754             /commands 
     757            commands/ 
    755758                __init__.py 
    756759                explode.py 
    757760        views.py 
    758761         
    759 In this example, ``explode`` command will be made available to any project 
     762In this example, the ``explode`` command will be made available to any project 
    760763that includes the ``fancy_blog`` application in ``settings.INSTALLED_APPS``. 
    761764