The unseen, silent tribute to those we have lost.
Project description
Django Clacks
The unseen, silent tribute to those we have lost.
django-clacks
contains boilerplate code for working with the nonstandard HTTP header X-Clacks-Overhead
.
You can find out more about the X-Clacks-Overhead
header here: https://xclacksoverhead.org/home/about
Installation
Django Clacks is on PyPI. Install it with pip install django-clacks
or add it with your dependency manager.
Quickstart
Add clacks.middleware.ClacksMiddleware
to your MIDDLEWARE
setting:
MIDDLEWARE = [
# ...
"clacks.middleware.ClacksMiddleware",
# ...
]
By default, all responses will now have a header X-Clacks-Overhead
, with the content GNU Terry Pratchett
.
You can modify the names used with the CLACKS_NAMES
setting. The following setting:
CLACKS_NAMES = [
"Terry Pratchett",
"Joe Armstrong",
]
Will result in an X-Clacks-Overhead
header containing GNU Terry Pratchett, Joe Armstrong
.
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
Built Distribution
Hashes for django_clacks-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64351266157f64ea2fa45892a2eee02480c7fb15c3dde8c6e9ce361c20039243 |
|
MD5 | af86cdadb9cabc158b5ee0a67c0e3bad |
|
BLAKE2b-256 | 1353df4b90cefb7f7a5c3041bf146b4a8f2d11b79137ac6c88a3672e36eb2c62 |