Django 1.2 brings multiple databases handling through the use of database routers. The actual version of South (0.7.3) is not able to handle correctly multiple databases projects out of the box.
Here is a workaround: the idea is to create a new fake django project. And then to use South migration within this project.
|
|
Next,edit my_south_db_project/settings.py
- we have to set the path correctly to south, to your app and to the corresponding database
- The only installed apps should be South and your app
|
|
Create south table in the new db
|
|
Now you can work in this project to manage your apps related to this new db
|
|
As you can see, this way you keep the standard South workflow !
Edit: I use this line in the main project’s settings.py in order to be able to launch tests:
SOUTH_TESTS_MIGRATE = False