我想用此主题替换Pinax的默认主题:https://github.com/pinax/pinax-theme-bootstrap但我不确定我是否理解快速启动指令。你能给我一些提示吗?pinax的安装主题
Include "pinax-theme-bootstrap" in your requirements file and "pinax_theme_bootstrap" in your INSTALLED APPS.
这里的需求文件是什么?
Make sure both template loaders and staticfiles finders includes app directories.
我不明白他们的意思。我在文件settings.py中看到STATICFILES_DIRS和TEMPLATE_LOADERS,这意味着我必须将pinax_theme_bootstrap目录放在apps文件夹中,并且包含指向此目录的链接。像这样:
STATICFILES_DIRS = [
os.path.join(PROJECT_ROOT, "media"),
os.path.join(PINAX_ROOT, "media", PINAX_THEME),
os.path.join(PINAX_ROOT, "apps", pinax-theme-bootstrap),
]
TEMPLATE_LOADERS = [
"django.template.loaders.filesystem.load_template_source",
"django.template.loaders.app_directories.load_template_source",
"apps.pinax-theme-bootstrap",
]
Site name comes from Sites fixture.
我完全不明白他们的意思。
Your "site_base.html" should extend "theme_base.html" and should provide "footer" and "nav" blocks (the latter should just be a ul of li of a links).
所以我必须把扩展“theme_base.html”放在“site_base.html”里面。如果之前没有“site_base.html”,那么应该包含“footer”和“nav”块?
Your pages should have blocks "head_title" and "body" and should extend "site_base.html".
所以我想用这个主题的任何网页,我必须有块“head_title”和“身体”,并应扩大“site_base.html”。如果我有一个已经扩展了“site_base.html”的“base.html”,我是否必须再次扩展?
The url name "home" should be defined as the homepage.
不确定。
请给我一些建议,谢谢!
我已经使用setup.py install命令安装了它。 –