Skip to content
Django Hypertext Coffee Pot Control Protocol (HTCPCP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
djhtcpcp
.gitignore
MANIFEST
README.md
__init__.py
setup.cfg
setup.py

README.md

Django HyperText Coffee Pot Protocol Middleware (HTCPCP)

Implemented HTCPCP as per RFC 2324.

https://www.ietf.org/rfc/rfc2324.txt

Setup

Install by downloading the source and running:

python setup.py install

or

pip install django-htcpcp

and then add it to your installed apps:

INSTALLED_APPS = (
    ...
    'djhtcpcp',
    ...
)

You will also need to add a middleware class to listen in on responses:

Django 1.10+

MIDDLEWARE = [
    ...
    'djhtcpcp.middleware.HTCPCPMiddleware',
    ...
]

Django 1.8-1.10:

MIDDLEWARE_CLASSES = [
    ...
    'djhtcpcp.middleware.HTCPCPMiddleware',
    ...
]
You can’t perform that action at this time.