Skip to content

Secure Multi site support for Leonardo CMS and FeinCMS based on SItes and uses dynamic ALLOWED_HOSTS.

License

Notifications You must be signed in to change notification settings

leonardo-modules/leonardo-multisite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leonardo Multisite

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:

MULTISITE_ENABLED = True

MIDDLEWARES += ('leonardo_multisite.middleware.MultiSiteMiddleware',)

from allowedsites import CachedAllowedSites

ALLOWED_HOSTS = CachedAllowedSites()

About

Secure Multi site support for Leonardo CMS and FeinCMS based on SItes and uses dynamic ALLOWED_HOSTS.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages