* Added Django 1.11 to Travis
- related to #435
- 😉 to tomturner/django-tenants#120
* Replace direct use of import_module by proper load_backend
Handle new 'django.db.backends.postgresql' name (Django 1.9)
* Fix 'default' already present in _fields in Django 1.11
* Fix not existing access to original_backend.DatabaseError (Django 1.11)
Removed exports because django.db.utils.DatabaseError and
django.db.utils.IntegrityError must be used instead.
This change must be stated in release notes.
* The signature of DatabaseWrapper._cursor has changed in Django 1.11
Use the public API
* Add missing allowed hosts for tests
* Don't override default user or blocks Unix socket DB connection
* Updated tox.ini for Django 1.11rc1
* Properly add '.test.com' to ALLOWED_HOSTS in test cases
* Internal tests don't use TenantTestCase so set allowed hosts manually
* Drop Django 1.9 support
Django 1.8 is still within LTS until the end of 2017.
* Add a tenant aware storage backend.
Using a mixin that can be combined with existing core and 3rd party
storage backends which isolates user uploaded media by introducing a
directory based on the schema_name (which shouldn't change after it's
been created) and a symbolic link from the domain_url to the directory.
In the reverse proxy, the domain_url can be parametrised to serve the
content via the symbolic link.
* WARN if project is not using a tenant aware storage backend.
* Add collectstatic_schemas management command
* Update the __all__ directive for tenant_schemas.storage
* Update test project for storage mixins
* Add documentation for DEFAULT_FILE_STORAGE changes
The Django documentation suggests that the correct way to overload
management commands with the same name is to load them earlier in the
INSTALLED_APPS list.
- ensure TENANT_APPS is defined in settings.py
- ensure TENANT_MODEL is defined in settings.py
- ensure TenantSyncRouter appears in DATABASE_ROUTERS
- ensure public schema and any existing tenant schemas are not listed in PG_EXTRA_SEARCH_PATHS
- raise error when TENANT_APPS is empty
- issue warning when 'tenant_schemas' is not the last item in INSTALLED_APPS
- issue warning when items in TENANT_APPS are not in INSTALLED_APPS
- add checks for SHARED_APPS
- add test cases for the best_practice system check
- update install documentation which previously suggested concatenation
- fix import path of get_public_schema_name
- fix failing test case for TenantContextFilter
- update tox.ini
- add .travis.yml
- PEP8 fixes
- resolves template loading in Django 1.8+ (thanks to @tomturner)
- removed code branches based on django.VERSION value
- updated documentation to remove details of removed functionality
Closes #289