Installation
$ [sudo] pip install django-meta-tag-view
views.py
from django_meta_tag_view.views import MetaTagMixin
class View(MetaTagMixin,...):
meta_tags = {'robots': 'noindex'}
class View(MetaTagMixin,...):
def get_meta_tags(self):
return {
'description': 'description ...',
'keywords': 'keywords ...'
}
Templates
<head>
{{ meta_tags }}
</head>
Metadata
Release files for django-meta-tag-view 2020.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-meta-tag-view-2020.7.1.tar.gz | 1.6 kB | Details |
Release files / django-meta-tag-view-2020.7.1.tar.gz
| Download URL | django-meta-tag-view-2020.7.1.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7de55fbf6a2919e20a8a16628895644cd1190841ccb30488d6a1ae7cc866b452
|
|
BLAKE2b-256 checksum How to use checksums |
97fb45a78b016028d19a256962d6029cde58261c30ebbcfa7f6f7711e664d813
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.7
|