Added south actions to fabfile

This commit is contained in:
Felipe Martín 2013-05-20 16:16:02 +02:00
parent 4d07760550
commit c8d288fc13
1 changed files with 8 additions and 0 deletions

8
fabfile.py vendored
View File

@ -138,6 +138,14 @@ def syncdb():
with prefix(env.activate):
local('python minecraftcodex/manage.py syncdb --noinput')
local('python minecraftcodex/manage.py loaddata ./config/development/admin.json')
local('python minecraftcodex/manage.py migrate')
def schemamigration(app, flag='--auto'):
if not active_virtualenv():
with prefix(env.activate):
local('python minecraftcodex/manage.py schemamigration %s %s' % (app, flag))
# Easy-mode
def prepare():