Skip to main content

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,
        ),
    })

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.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

feincms3_meta-1.1.0-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file feincms3-meta-1.1.0.tar.gz.

File metadata

  • Download URL: feincms3-meta-1.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for feincms3-meta-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e91f303f76db1a21246c11391d82c46fd17a571b7a9a887477d1f69f273f6413
MD5 9bd9ffce9b49f7806577ca1911db22e9
BLAKE2b-256 db0c3b55fc53d1fe3751dd2c4753ac0f8da40cb557935e2c2fb071fb6305e590

See more details on using hashes here.

File details

Details for the file feincms3_meta-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for feincms3_meta-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bdc90089b3e156b2b837995c01bfd3f313fef9c52133abd02ae5d73e933e961c
MD5 614049b5dca080dc0f504f76e66ae425
BLAKE2b-256 8f8d3b428a6e8349c6d6b5c19edb4e49fcfe3d5b43163ad3bf945d2d79de622e

See more details on using hashes here.

Release history Release notifications | RSS feed

4.6.0

2 files

4.5.0

2 files

4.4.0

2 files

4.3.0

2 files

4.2.2

2 files

4.2.1

2 files

4.2.0

2 files

4.1.0

2 files

4.0.0

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.0.1

2 files

2.0.0

2 files

1.5.1

2 files

1.5.0

1 file

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.0

2 files

1.1.1

2 files

This release

1.1.0 This release

2 files

1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page