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