My current project is getting extended with geographical stuff, so I'm trying to integrate GeoDjango and import some shapefiles for starters. My setup consists of the following:
- MySQL 5.0 as 'default' database, previously the only database.
- Spatialite as 'gis' database, should only be used to import areas from shapefiles
South
is being used throughout the project
Now I've created a GeoDjango model in a new app for my areas. As usual, I've done ./manage.py schemamigration --initial
and when I tried doing ./manage.py migrate $my_new_app --database="gis"
, it failed with django.db.utils.DatabaseError: no such table: south_migrationhistory
, which is I guess correct, since south_migrationhistory
is in my main database.
Does anyone have any experience with such setups and can help me out?
EDIT: I've changed the title, since I realized this question is not actually GeoDjango-specific.