为Django应用添加Django-Compositions HTTP头
项目描述
django-plugin-django-header
为Django应用添加Django-Compositions HTTP头
安装
首先 安装和配置DJP。
然后在与您的Django应用程序相同的环境中安装此插件。
pip install django-plugin-django-header
使用
安装后,应用程序的每个响应都将包含一个 Django-Composition
HTTP头,列出 Django Reinhardt的一首曲子。例如
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
...
开发
要本地设置此插件,首先检出代码。然后创建一个新的虚拟环境
cd django-plugin-django-header
python -m venv venv
source venv/bin/activate
现在安装依赖项和测试依赖项
pip install -e '.[test]'
要运行测试
python -m pytest
项目详情
关闭
django_plugin_django_header-0.1.1.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 7f598ff034543dbdbb3626ba91290ff683ebbe9686d99bfb41d1aa7dc843ad64 |
|
MD5 | 7fd8c035319a0f4276855b9af36c65a5 |
|
BLAKE2b-256 | 9943aa397fa4f3e020984e01da9482f8ae34a042b0cf8b4d42909a1d4df18c8e |
关闭
django_plugin_django_header-0.1.1-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | df969f286ec5d0666a9078aaf8ee9cf1d928492d38258a46eecad72bba1efaf0 |
|
MD5 | 120fc8f47c4220fce92f0c7215934936 |
|
BLAKE2b-256 | 6c58b26f49057fb5e285ebf0a2f5c631f6297f499e24a83a2a933f8df98defb9 |