Skip to main content

Add a Django-Compositions HTTP header to a Django app

Project description

django-plugin-django-header

PyPI Changelog Tests License

Add a Django-Compositions HTTP header to a Django app

Installation

First install and configure DJP.

Then install this plugin in the same environment as your Django application.

pip install django-plugin-django-header

Usage

Once installed, every response from the application will include a Django-Composition HTTP header listing a composition by Django Reinhardt. For example:

curl -I http://localhost:8000/
HTTP/1.1 200 OK
Server: WSGIServer/0.2 CPython/3.12.0
Content-Type: text/html; charset=utf-8
Django-Composition: Castle of My Dreams
...

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd django-plugin-django-header
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

python -m pytest

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_plugin_django_header-0.1.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django_plugin_django_header-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django_plugin_django_header-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7f598ff034543dbdbb3626ba91290ff683ebbe9686d99bfb41d1aa7dc843ad64
MD5 7fd8c035319a0f4276855b9af36c65a5
BLAKE2b-256 9943aa397fa4f3e020984e01da9482f8ae34a042b0cf8b4d42909a1d4df18c8e

See more details on using hashes here.

File details

Details for the file django_plugin_django_header-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_plugin_django_header-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df969f286ec5d0666a9078aaf8ee9cf1d928492d38258a46eecad72bba1efaf0
MD5 120fc8f47c4220fce92f0c7215934936
BLAKE2b-256 6c58b26f49057fb5e285ebf0a2f5c631f6297f499e24a83a2a933f8df98defb9

See more details on using hashes here.

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