mik3y / django-db-multitenant

A simple multi-tenancy solution for Django apps.
Other
155 stars 34 forks source link

SyncDB and South module stop working #1

Closed hugocore closed 11 years ago

hugocore commented 11 years ago

Hi,

Good work, I like this module and it's working so far in my tests. But I found out some issues.

There's a problem using this module. If you use South to migrate your tables, this stop working with the error "Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x108ec2450>>" My guess, it's that it's not supported for South.

Also, when using the 'ENGINE': 'db_multitenant.db.backends.mysql', commands like "python manage.py syncdb" or "python manage.py sql" return the error: "NameError: global name 'ImproperlyConfigured' is not defined"

How did you manage to solve your table migrations and creations? Best Regards

mik3y commented 11 years ago

Thanks for the feedback!

There's a problem using this module. If you use South to migrate your tables, this stop working...

Can you try adding the following to your settings and see if it helps?

SOUTH_DATABASE_ADAPTERS['default'] = 'south.db.mysql'

"NameError: global name 'ImproperlyConfigured' is not defined"

Oops, this is now fixed.

hugocore commented 11 years ago

Thanks for the response!

Ps. I think that these last modifications are not in the PIP repository, because even uninstalling and installing the package didn't download these modifications. Unless it's some problem with my pip cache.