Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Wenyao Xue
5 at 7:35:15 AM UTC-4, Wenyao Xue wrote: >> >> I upgraded my router using allow_migrate, but it didn't solve my problem >> >> 在 2015年9月14日星期一 UTC+8下午6:37:56,Jani Tiainen写道: >>> >>> I guess you need to write a bit more: >>> >>> https://

Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Wenyao Xue
> > On 14.09.2015 13:07, Wenyao Xue wrote: > > Following is my router for world app. No router for other two apps, since > default database is used > Settings: > DATABASE_ROUTERS = ['world.routers.GisRouter'] > > router.py in world app: > class GisRouter(objec

Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Wenyao Xue
e the auth app only appears in the 'auth_db' database. """ if db == 'geodjango': return model._meta.app_label == 'world' elif model._meta.app_label == 'world': return False return None

migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Wenyao Xue
Hi, I use mysql as default database and postgres for geodjango related appliction. my settings: DATABASE_ROUTERS = ['world.routers.GisRouter', 'rest_shop.routers.ShopRouter', 'rest_client.routers.ClientRouter'] DATABASES = { 'default': {