Add a Django-Compositions HTTP header to a Django app
Project description
django-plugin-django-header
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
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
File details
Details for the file django_plugin_django_header-0.1.1.tar.gz
.
File metadata
- Download URL: django_plugin_django_header-0.1.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f598ff034543dbdbb3626ba91290ff683ebbe9686d99bfb41d1aa7dc843ad64 |
|
MD5 | 7fd8c035319a0f4276855b9af36c65a5 |
|
BLAKE2b-256 | 9943aa397fa4f3e020984e01da9482f8ae34a042b0cf8b4d42909a1d4df18c8e |
File details
Details for the file django_plugin_django_header-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: django_plugin_django_header-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df969f286ec5d0666a9078aaf8ee9cf1d928492d38258a46eecad72bba1efaf0 |
|
MD5 | 120fc8f47c4220fce92f0c7215934936 |
|
BLAKE2b-256 | 6c58b26f49057fb5e285ebf0a2f5c631f6297f499e24a83a2a933f8df98defb9 |