def migrate(): execute(setup) with cd(latest_release_path()): run('%s manage.py migrate' % virtualenv_python_path())
def setup(): with cd(latest_release_path()): run('%s manage.py syncdb' % virtualenv_python_path())