Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-plugin-django-header

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-plugin-django-header

Add a Django-Compositions HTTP header to a Django app

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc