Skip to main content

Django http Etag header view mixin

Project description

Installation

$ [sudo] pip install django-http-etag-view

Examples

get_http_etag

from django_http_etag_view.views import HttpEtagMixin

class MyView(HttpEtagMixin,...):

    def get_http_etag(self):
        return 'XXX'

dispatch, self.http_etag:

class MyView(HttpEtagMixin,...):
    def dispatch(self, *args, **kwargs):
        self.http_etag = 'XXX'
        return super().dispatch(*args, **kwargs)

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-http-etag-view-2020.7.1.tar.gz (1.5 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