Skip to content

Commit

Permalink
Merge pull request #287 from shabda/patch-1
Browse files Browse the repository at this point in the history
maintain order of installed_apps
  • Loading branch information
bernardopires committed Oct 2, 2015
2 parents ed1d100 + 6fd6454 commit 77c9176
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ Configure Tenant and Shared Applications
To make use of shared and tenant-specific applications, there are two settings called ``SHARED_APPS`` and ``TENANT_APPS``. ``SHARED_APPS`` is a tuple of strings just like ``INSTALLED_APPS`` and should contain all apps that you want to be synced to ``public``. If ``SHARED_APPS`` is set, then these are the only apps that will be synced to your ``public`` schema! The same applies for ``TENANT_APPS``, it expects a tuple of strings where each string is an app. If set, only those applications will be synced to all your tenants. Here's a sample setting

.. code-block:: python
from collections import OrderedDict
SHARED_APPS = (
'tenant_schemas', # mandatory
'customers', # you must list the app where your tenant model resides in
Expand All @@ -98,7 +99,7 @@ To make use of shared and tenant-specific applications, there are two settings c
'myapp.houses',
)
INSTALLED_APPS = list(set(SHARED_APPS + TENANT_APPS))
INSTALLED_APPS = list(OrderedDict.fromkeys(SHARED_APPS + TENANT_APPS))
You also have to set where your tenant model is.

Expand Down

0 comments on commit 77c9176

Please sign in to comment.