Merge pull request #279 from nephila/docs/multisite
Improve multisite documentation
This commit is contained in:
commit
f752a56092
1 changed files with 14 additions and 5 deletions
|
@ -37,14 +37,23 @@ Multisite
|
|||
|
||||
django CMS blog provides full support for multisite setups.
|
||||
|
||||
Basic multisite
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
To enabled basic multisite add ``BLOG_MULTISITE = True`` to the project settings.
|
||||
|
||||
Each blog post can be assigned to none, one or more sites: if no site is selected, then
|
||||
it's visible on all sites.
|
||||
it's visible on all sites. All users with permission on the blog can manage all the blog
|
||||
posts, whichever the sites are.
|
||||
|
||||
This is matched with and API that allows to restrict users to only be able to edit
|
||||
blog posts only for some sites.
|
||||
Multisite permissions
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
To implement this API, you must add a ``get_sites`` method on the user model which
|
||||
returns a queryset of sites the user is allowed to add posts to.
|
||||
Multisite permissions allow to restrict users to only manage the blog posts for the
|
||||
sites they are enabled to
|
||||
|
||||
To implement the multisite permissions API, you must add a ``get_sites`` method on
|
||||
the user model which returns a queryset of sites the user is allowed to add posts to.
|
||||
|
||||
Example::
|
||||
|
||||
|
|
Loading…
Reference in a new issue