I setup my router following the docs.
Here's what my router.py looks like:
AUTH_APPS = ('auth',)
class MyRouter(object):
def db_for_read(self, model, **hints):
if model._meta.app_label in AUTH_APPS:
return 'auth'
return None
def db_for_read(self, model, **hints):
if model._meta.app_label in AUTH_APPS:
return 'auth'
return None
def allow_syncdb(self, db, model):
"Make sure the Auth apps only appears on the 'auth' db"
if db == 'auth':
return model._meta.app_label in AUTH_APPS
elif model._meta.app_label in AUTH_APPS:
return False
return None
Removing auth from the default database seems to cause issues with contenttypes and create errors on syncdb. auth and contenttypes seem to be dependent on each other.