Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a fab command to automate the initial South conversion.

  • Loading branch information...
commit b1db2b49b2354ab03740824e8323293fab03dd0a 1 parent 37373b3
@jacobian jacobian authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 fabfile.py
View
11 fabfile.py
@@ -80,4 +80,13 @@ def managepy(cmd, site='www'):
assert site in ('docs', 'www')
django_admin = env.virtualenv.child('bin', 'django-admin.py')
sudo('%s %s --settings=django_website.settings.%s' % (django_admin, cmd, site))
-
+
+def southify(app):
+ """
+ Southify an app remotely.
+
+ This fakes the initial migration and then migrates forward. Use it the first
+ time you do a deploy on app that's been newly southified.
+ """
+ managepy('migrate %s 0001 --fake' % app)
+ managepy('migrate %s' % app)

0 comments on commit b1db2b4

Please sign in to comment.
Something went wrong with that request. Please try again.