No project description provided
Project description
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, ), })
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for feincms3_meta-1.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13e63402861c8e889f2bbf255bc276a64e7d7f6dd3787a6156197b9dc0aaa2e6 |
|
MD5 | 43668b38723b579a837b10d7023162ce |
|
BLAKE2b-256 | 5dde21379119932991bcb16926693737f52c60fc14db8a7f72f728cec6211bad |