How to automate south migrations in an install script
I have a Django project using South that includes an install script. What I'd like to do is have a couple of lines of code in that install script that take care of installing and syncing my database with my latest code so that new installations of the project can easily get their database set up.

I could run...

    python manage.py migrate --fake 0010 appname1
    python manage.py migrate --fake 0004 appname2

...but I can't put that into the install script because (1)I don't know the migration number in advance, and (2) I'd rather not have to keep the install script up to date with the app names.

What I need is something like:

    python manage.py migrate --fake --allmigrations --allapps

Is there a trick for this?
How to automate south migrations in an install script
===

I have a Django project using South that includes an install script. What I'd like to do is have a couple of lines of code in that install script that take care of installing and syncing my database with my latest code so that new installations of the project can easily get their database set up.

I could run...

    python manage.py migrate --fake 0010 appname1
    python manage.py migrate --fake 0004 appname2

...but I can't put that into the install script because (1)I don't know the migration number in advance, and (2) I'd rather not have to keep the install script up to date with the app names.

What I need is something like:

    python manage.py migrate --fake --allmigrations --allapps

Is there a trick for this?