Full support for multisite with security. Uses reuqest processing for filtering page and django-allowedsites for ALLOWED_HOSTS based on the domains in django.contrib.sites.
Installation
pip install leonardo-multisite
And enable it in the admin or add MULTI_SITE_ENABLED to your settings.
or as leonardo bundle
pip install django-leonardo[multisite]
For FeinCMS users
settings.py:
MULTI_SITE_ENABLED = True
MIDDLEWARES += ('leonardo_multisite.middleware.MultiSiteMiddleware',)
from allowedsites import CachedAllowedSites
ALLOWED_HOSTS = CachedAllowedSites()
Read More
Metadata
Release files for leonardo-multisite 2016.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| leonardo-multisite-2016.1.0.tar.gz | 4.0 kB | Details |
Release files / leonardo-multisite-2016.1.0.tar.gz
| Download URL | leonardo-multisite-2016.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09c59adf2b7559d899d3d735878680d8198fd444516d3dcd1461e772de71e3b2
|
|
BLAKE2b-256 checksum How to use checksums |
cc105900236a23bf0c8b8b757691409e391cccdc815e68f93af1a5bf863bba09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |