Helpers and mixins for making meta and open graph tags less annoying.
Usage
Inherit feincms3_meta.models.MetaMixin
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', }If you define fieldsets on a ModelAdmin subclass, you may want to use the helper MetaMixin.admin_fieldset(), or maybe not.
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, ), })
Release files for feincms3-meta 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| feincms3-meta-1.1.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| feincms3_meta-1.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 12.3 kB
Release files / feincms3-meta-1.1.0.tar.gz
| Download URL | feincms3-meta-1.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e91f303f76db1a21246c11391d82c46fd17a571b7a9a887477d1f69f273f6413
|
|
BLAKE2b-256 checksum How to use checksums |
db0c3b55fc53d1fe3751dd2c4753ac0f8da40cb557935e2c2fb071fb6305e590
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / feincms3_meta-1.1.0-py2.py3-none-any.whl
| Download URL | feincms3_meta-1.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bdc90089b3e156b2b837995c01bfd3f313fef9c52133abd02ae5d73e933e961c
|
|
BLAKE2b-256 checksum How to use checksums |
8f8d3b428a6e8349c6d6b5c19edb4e49fcfe3d5b43163ad3bf945d2d79de622e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |