Created
February 10, 2011 14:57
-
-
Save rob-b/820648 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def migrate(): | |
"""apply all pending db migrations""" | |
django_admin('migrate') | |
def django_admin(arguments): | |
require('target', provided_by=['stage', 'live']) | |
settings = '%(project)s.configs.%(target)s.settings' % env | |
cmd = '%(venv)s/bin/django-admin.py' % env | |
run('%s %s --settings=%s' % (cmd, arguments, settings)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment