This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

The django application, that allows attach title, keywords and description meta tags for site’s pages.


$ pip install django-simple-metatags


  1. Add ‘metatags’ to your INSTALLED_APPS:
    # ...
  1. Run migrate to create the application table:
$ python migrate metatags

3. Include meta tags for model, add MetaTagInline in inlines of your ModelAdmin subclass (also django-simple-metatags has the own ModelAdmin class, that allows add meta tags for URL-paths):

from metatags.admin import MetaTagInline

class CustomModelAdmin(admin.ModelAdmin):
    # ...
    inlines = (MetaTagInline,)

4. Load meta_tags template library and create meta_tags template block in HTML head section. Add include_meta_tags template tag in meta_tags block:

{% load meta_tags %}
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    {% block meta_tags %}
        {% include_meta_tags %}
    {% endblock %}

Arguments of include_meta_tags template tag

All arguments are optional.

model_instance - Model instance, to get meta tags. None by default.

model_title_field - Model’s field, that can be used as title if meta tags title field is blank. ‘title’ by default.

default_title - Title of page by default. Used with URL-path. No sense, when the model_instance argument was passed. ” by default.

default_keywords - Keywords by default.

default_description - Description by default.

Management command

syncmetatags - adds translation fields, when the django-modeltranslation application is used.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-simple-metatags-0.9.1.tar.gz (9.3 kB) Copy SHA256 Checksum SHA256 Source Aug 4, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting