Skip to main content

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

Release files for django-plugin-django-header 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-plugin-django-header 0.1.1
File Size Uploaded
django_plugin_django_header-0.1.1.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-plugin-django-header 0.1.1
File Interpreter ABI Platform
django_plugin_django_header-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.1 kB

Release files / django_plugin_django_header-0.1.1.tar.gz

Download URL django_plugin_django_header-0.1.1.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7f598ff034543dbdbb3626ba91290ff683ebbe9686d99bfb41d1aa7dc843ad64
BLAKE2b-256 checksum
How to use checksums
9943aa397fa4f3e020984e01da9482f8ae34a042b0cf8b4d42909a1d4df18c8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / django_plugin_django_header-0.1.1-py3-none-any.whl

Download URL django_plugin_django_header-0.1.1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df969f286ec5d0666a9078aaf8ee9cf1d928492d38258a46eecad72bba1efaf0
BLAKE2b-256 checksum
How to use checksums
6c58b26f49057fb5e285ebf0a2f5c631f6297f499e24a83a2a933f8df98defb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page