The django elsware management command imports your settings module, and looks for a settings.DEPLOYMENTS dictionary. This is the configuration given to elsware. It also accepts names of deployment instructions to run, and a password.
Usage examples
python manage.py -d slicehost -p mypassword
You can give it more than one deployment instruction.
python manage.py -d slicehost -d dreamhost -p mypassword
The django command only accepts one password from the command prompt, if you need to supply more than one password, it’ll have to be specified in the configuration dictionary.
If you’re writing custom elsware actions for your django apps, this elsware command can auto load your actions. You need to put a file in your app: {myapp}/management/commands/elsware/actions.py. You need to register the action as well.
Here’s an example actions.py file:
from elsware import actions,base
class TestAction(base.BaseAction):
def run(self):
print "RUNNING MY TEST ACTION"
actions.register_action_class("test",TestAction)