• 
      

    Add support for custom site-specific management commands.

    Review Request #1447 — Created March 4, 2010 and submitted — Latest diff uploaded

    Information

    Review Board
    master

    Reviewers

    Add support for custom site-specific management commands.
    
    This change introduces the ability to write custom management commands specific
    to a site installation.
    
    This uses standard Django management commands. They can be placed in
    the site's commands/ directory. `rb-site manage` will look for Python files
    in this directory and add them to the known list of management commands.
    
    Today, adding them to the list is pretty hacky, but there aren't any other
    options. We will probably want to request the ability to cleanly register
    new commands in Django. It works though, and we can update it if needed
    down the road.
    Built a sample 'mytest' management command and put it in the commands/ directory of a site. Ran 'rb-site manage /path/to/site mytest' and saw the output from the management command.