forked from yeago/django-metatags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
17 lines (10 loc) · 673 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>