djangoプロジェクトに1つのアプリがあります。
seo.pyファイルを作成して追加しました:
rollyourownimportseoから
class MyMetadata(seo.Metadata):
title = seo.Tag(head=True, max_length=68)
description = seo.MetaTag(max_length=155)
keywords = seo.KeywordTag()
class HelpText:
title = "This will appear in the window/tab name, as well as in search results."
keywords = "A comma separated list of words or phrases that describe the content"
description = "This will appear in the description"
class Meta:
seo_views = ('app_name', )
私のbase.htmlhead
に追加しました:
{% load seo %}
{% get_metadata %}
しかし、何も表示されません。なにが問題ですか?(もちろん、管理パネルにデータを追加しました-メタデータ(表示))