0
我在夹层有两个免费主题 - solid & moderna
取自 - HERE。为什么模板路径不同并且夹层中渲染的内容不同?
我只是想运行mezzanine
的HOST_THEMES
功能。所以,我继续装都在我的INSTALLED_APPS
这样的主题 -
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",
)
在那之后我配置我的代码和0.0.0.0:8000
跑。然后我在HOST_THEMES
设置了两个主机这样
HOST_THEMES = [("localhost:8000", "solid"),
("192.168.1.130:8000", "moderna")]
每个人都知道为什么:8000
在我,因为这行代码的主机 - Line 25
if host.lower() == domain.lower():
如果我不把我与主机平等失败的端口。
正是我做错了什么?