We're expanding our business into Europe and I'm using Mezzanine's multi-tenancy feature to host both the US and EU versions of the site on the same Django installation. We have a /locations
page on each site that I would like to serve with different templates, based on the SITE_ID
.
I've followed Mezzanine's sparse documentation here and added the following to settings.py
HOST_THEMES = [
('domain.com', 'domain_app'),
('domain.eu', 'domain_eu')
]
I've added domain_eu
to INSTALLED_APPS
after the base theme and used python manage.py startapp domain_eu
to generate the directory and manually created the domain_eu/templates/pages/locations.html
file.
I then copied the locations page and assigned it to the EU site.
The page still renders with the locations template located in the base theme domain_app/templates/pages/locations.html
I've confirmed that the correct SITE_ID
is set in the request.
How do I get the page to render with the template in its corresponding theme/app directory based on the current SITE_ID
?