Skip to main content

Django <meta /> tag view mixin

Project description

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>

readme42.com

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

django-meta-tag-view-2020.7.1.tar.gz (1.6 kB view hashes)

Uploaded Source

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