Closed alexandervaneck closed 7 years ago
Next to that:
python
from django.utils.importlib import import_module
should be replaced with:
``` python```
from importlib import import_module
in both db/backend/mysql/base.py and utils.py to make this ready for Django 1.9.
Thanks for making this! :) works great
Thanks for the update, and sorry for the neglect. This should be fixed thanks to #8, cheers.
Hi,
At the moment TENANT_DATABASE_NAME=example.com ./manage.py runserver doesn't work because django loads the settings after it tries to connect to mysql. This can be fixed by adding
python
from db_multitenant.utils import update_database_from_envif not dbname: utils.update_database_from_env(super(DatabaseWrapper, self).get_connection_params()) dbname = self.threadlocal.get_dbname()