def manage(command=""): with prefix('source {0}venv/bin/activate && export DATABASE_URL={1}'.format(PROJECT_DIR, DATABASE_URL)): with cd(DJANGO_DIR): run('python manage.py {0}'.format(command))