Commit Graph

19 Commits

Author SHA1 Message Date
Gary Reynolds 510e0f9015 Explicitly define INSTALLED_APPS in settings.py 2017-06-02 18:40:03 +10:00
Juan Marquez 9466781822 Compatibility with Django 1.11 LTS (Tutorial) #477
--------------------------------------------------

Update tenant_tutorial to Django 1.11

To create a PR
2017-05-07 13:00:49 -04:00
Gary Reynolds ea95f3f7a4 Refactor ImproperlyConfigured to system check framework
- 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
2016-11-11 07:57:14 +11:00
Bernardo Pires f1e322ae6c Merge branch 'master' of github.com:bernardopires/django-tenant-schemas 2016-05-30 00:08:28 +02:00
Bernardo Pires 63ae15f1b8 Changed readthedocs.org to readthedocs.io 2016-05-30 00:08:23 +02:00
Gary Reynolds cb8862d026 Remove Django < 1.8 compatibility
- 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
2016-05-18 22:18:31 +10:00
Bernardo Pires af631d5fe6 Fixed the RemovedInDjango110Warning related to the url patterns from the tutorial. Thanks @mikicz. Fixes #320 2016-03-28 12:09:38 +02:00
Bernardo Pires e4814e483d Added missing tenant tutorial migrations. 2015-12-28 16:59:56 +01:00
Bernardo Pires 52aa06440f pep8 changes 2015-07-30 11:35:54 +02:00
Bernardo Pires 50e67c8900 Now using django's new test runner. Fixed test project and examples. 2015-01-05 15:43:40 +01:00
Bernardo Pires 845e19be9c Test project and examples now compatible with Django 1.7 2015-01-05 15:34:47 +01:00
Bernardo Pires 1019e0186c pep8 2014-12-27 17:01:08 +01:00
Bernardo Pires 1aa30ad7fb no longer using legacy remove_www_and_dev function on example 2014-12-26 20:21:33 +01:00
Anton Ovchinnikov f740df449d PEP8 and typos 2014-08-21 10:33:24 +02:00
Bernardo Pires 83ddf2a2d8 tutorial now uses best practices for settings 2014-06-12 21:53:05 -07:00
Bernardo Pires c8e6784f32 fixed nano command to include sudo 2014-06-11 22:43:35 -07:00
Anna Warzecha 862a7c0f2b Introduce Django 1.4 compatibility 2013-11-11 01:02:05 +01:00
Walkman 73757d1511 Removed IntelliJ files 2013-10-20 14:26:49 +02:00
Bernardo Pires 4bbaf6fc9e added first example: an interactive tutorial for this app 2013-10-20 13:32:30 +02:00