bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.46k stars 424 forks source link

Compatibility with Django 1.11 LTS (Tutorial) #477

Closed juanvmarquezl closed 7 years ago

juanvmarquezl commented 7 years ago

I'am doing some tests to use django-tenant-schemas and I found several errors on tenant_tutorial settings,py file.

I attach the updated setting.py file. settings.py.zip

ghost commented 7 years ago

Thanks for this. I also had to change line 158 to this in order to eliminate a warning about installed app order:

from collections import OrderedDict
INSTALLED_APPS = list(OrderedDict.fromkeys(SHARED_APPS + TENANT_APPS))
bernardopires commented 7 years ago

Please send a pull request instead. Thanks!