Pinax のデフォルト テーマを次のテーマに置き換えたい: https://github.com/pinax/pinax-theme-bootstrapしかし、クイック スタートの説明がよくわかりません。ヒントを教えてください。
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).
したがって、「site_base.html」内に「theme_base.html」を拡張する必要があります。また、「site_base.html」内に「footer」と「nav」の両方のブロックを含める必要がありますか?
Your pages should have blocks "head_title" and "body" and should extend "site_base.html".
したがって、このテーマを使用したいページでは、「head_title」と「body」のブロックが必要で、「site_base.html」を拡張する必要があります。「site_base.html」を既に拡張している「base.html」がある場合、もう一度拡張する必要がありますか?
The url name "home" should be defined as the homepage.
わからない。
いくつかの提案をお願いします、ありがとう!