We are using fabric for development as well as deployment and I'm wondering how people are doing command like this.
This code should work for both the developer machine (ie: run local) and the deployment machine (ie: use run)
@task
def install_db(command=local):
"""@onetime install of the database"""
with prefix("source venv/bin/activate"):
command("python manage.py syncdb --migrate")
However that's a bit of a problem as I can't call that command from fab just from other fabric scripts.