I have two free themes in mezzanine - `solid & moderna` taken from -
[HERE](https://github.com/thecodinghouse/mezzanine-themes).
I simply want to run the `HOST_THEMES` feature of `mezzanine`. So I went
ahead and loaded both the themes in my `INSTALLED_APPS` like this -
INSTALLED_APPS = (
"moderna",
"solid",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.redirects",
"django.contrib.sessions",
"django.contrib.sites",
"django.contrib.sitemaps",
"django.contrib.staticfiles",
"mezzanine.boot",
"mezzanine.conf",
"mezzanine.core",
"mezzanine.generic",
"mezzanine.pages",
"mezzanine.blog",
"mezzanine.forms",
"mezzanine.galleries",
"mezzanine.twitter",
'mezzanine_api',
'rest_framework',
'rest_framework_swagger',
'oauth2_provider',
# "mezzanine.accounts",
# "mezzanine.mobile",
)
AFter that I configured my code and ran on `0.0.0.0:8000`. Then I made two
hosts in my `HOST_THEMES` settings like this
HOST_THEMES = [("localhost:8000", "solid"),
("192.168.1.130:8000", "moderna")]
Everyone wondering why the `:8000` in my hosts because of this line in code
- `Line 25`
if host.lower() == domain.lower():
if I don't set my host with the ports the equality fails.
So after this I am debugging step by step for which templates are picking
up.
[![Host and themes match here clearly][1]][1]
And the template directory is also correctly selected:
[![solid theme being picked up from my directory][2]][2]
[![As you can see in the `rendered_content` you will find moderna being
rendered always because its on top and `template_name` being the template
from `solid` directory][3]][3]
[1]: http://i.stack.imgur.com/S8Uz9.png
[2]: http://i.stack.imgur.com/lAzgX.png
[3]: http://i.stack.imgur.com/LcbHx.png
What exactly I am doing wrong?
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.