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():
如果我不把我與主機平等失敗的端口。
正是我做錯了什麼?