Skip to main content

No project description provided

Project description

Helpers and mixins for making meta and open graph tags less annoying.


  1. Inherit feincms3_meta.models.MetaMixin

  2. Optional, but recommended: Add a setting for default tags:

    META_TAGS = {
        'site_name': 'My site',
        'title': 'Default title',
        'description': (
            'The default description,'
            ' maybe long.'
        'image': '/static/app/logo.png',
  3. If you define fieldsets on a ModelAdmin subclass, you may want to use the helper MetaMixin.admin_fieldset(), or maybe not.

  4. Use the dictionary returned by feincms3_meta.utils.meta_tags either directly (its __str__ method renders as a HTML fragment) or access individual properties using standard dictionary access:

    return render(request, ..., {
        'meta_tags': meta_tags(

    meta_tags also supports overriding or removing individual tags using keyword arguments. Falsy values are discarded, None causes the complete removal of the tag from the dictionary.

    The rendering of a meta tags dictionary is also usable standalone with feincms3_meta.utils.format_meta_tags.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for feincms3-meta, version 1.4.1
Filename, size File type Python version Upload date Hashes
Filename, size feincms3_meta-1.4.1-py2.py3-none-any.whl (6.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size feincms3-meta-1.4.1.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page