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)
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
File details
Details for the file django-http-etag-view-2020.7.1.tar.gz
.
File metadata
- Download URL: django-http-etag-view-2020.7.1.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a93ac427340928eb08386598e05ba456e05bfa97f015bcc414349bc049bcfe8 |
|
MD5 | fae63a6f4445d15cbfbe313f22985f50 |
|
BLAKE2b-256 | ad7989ab6d696afd25838217b9ace83bc4f6ef3a29309b1e065daa878bc434c4 |