Is it OK to set the database name setting depending on subdomain for each request?
Something like this in a middleware:
from django.db import connection
company_name = ... # read the subdomain
connection.settings_dict['NAME'] = 'db_' + company_name