我在夹层中有两个免费主题 -solid & moderna
取自 - HERE。
我只是想HOST_THEMES
运行mezzanine
. 所以我继续加载我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():
如果我不使用端口设置我的主机,则相等性失败。
我到底做错了什么?