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.
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]
settings.py:
MULTI_SITE_ENABLED = True
MIDDLEWARES += ('leonardo_multisite.middleware.MultiSiteMiddleware',)
from allowedsites import CachedAllowedSites
ALLOWED_HOSTS = CachedAllowedSites()
| Category | # Using This |
|---|---|
| Site |
| Version | License | Released | Status | Python 3? |
|---|---|---|---|---|
| 2015.7.0 | BSD | 07/14/2015 | Production/Stable |
Repo Hosting: Github
| Repo URL | Commits | ||
|---|---|---|---|
| https://github.com/leonardo-modules/leonardo-multisite | n/a | n/a |
No sites using this package have been listed yet.