Skip to main content

No project description provided

Project description

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

Usage

  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 or even the HTML fragment returned by feincms3_meta.utils.meta_tags_html in your project:

    return render(request, ..., {
        ...
        'meta_tags': meta_tags_html(
            [object],
            request=request,
        ),
    })

Project details


Download files

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

Source Distribution

feincms3-meta-1.1.1.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

feincms3_meta-1.1.1-py2.py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page