I can syncdb OK if I don’t add allow_syncdb to my router, but if I add the allow_syncdb to the router, only my default db is synced. Any idea what I’m doing wrong, code is:
def allow_syncdb(self, db, model):
print 'allow syncdb for***************** Inserv Router', db, model._meta.app_label
return db=='inserv' and model._meta.app_label == 'inserv'
No comments:
Post a Comment