Skip to main content

The unseen, silent tribute to those we have lost.

Project description

Django Clacks

The unseen, silent tribute to those we have lost.

python-versions version discord


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-clacks-0.3.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_clacks-0.3.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file django-clacks-0.3.0.tar.gz.

File metadata

  • Download URL: django-clacks-0.3.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.10.2 Linux/5.16.5-200.fc35.x86_64

File hashes

Hashes for django-clacks-0.3.0.tar.gz
Algorithm Hash digest
SHA256 24dffb99cc2226a1f0bed8793913111094c3b2880932ed35bfcd313faf346b8b
MD5 dfcffccdec3b6f6f720d7a68778dae0c
BLAKE2b-256 bae678d21e7b7873fbcd1dcb3fbf4091fbb320651b9eb0248ecd350d6da9df70

See more details on using hashes here.

File details

Details for the file django_clacks-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: django_clacks-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.10.2 Linux/5.16.5-200.fc35.x86_64

File hashes

Hashes for django_clacks-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd2e386829d97fb34f292fb1ab0f9646db553508a17a2c6e88294dad8e1f7a2a
MD5 8cd837cc590ea44a553b4cea91b6d818
BLAKE2b-256 d0f8b69c18d2c8d2c65ddc73199fa01873d8ae0d1919943cfb44774f6abbd067

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page