industrydive/django-site-metatags
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
This allows you to specify Titles and Meta tags to override the normal tags on given pages Based on https://github.com/subsume/django-metatags The main difference is that this fork expects to be used with the Sites framework. There are some additional minor bugfixes and cleanup in the admin. INSTALL: 1) add metatags to INSTALLED_APPS, Syncdb or "migrate" using South. 2) Create some URLMetatags model instances via the admin 3) Load the "metatag_tags" templatetag in your base tag and call {% metatag_populate %} This will create a metatag dict in the current context that you can access like: <title>{{ metatag.title|default:"default page title"}}</title>