Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

You know they'll never really die while the Trunk is alive

Project Description
Django GNU Terry Pratchett
==========================

Keeping the legacy of [Sir Terry Pratchett](http://en.wikipedia.org/wiki/Terry_Pratchett) alive forever.
For as long as his name is still passed along the Clacks,
Death can't have him.

* G: send the message on
* N: do not log the message
* U: turn the message around at the end of the line and send it back again

with thanks to [this reddit thread](http://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/)

Installation
------------

You can install from pypi:

pip install django-GNU-Terry-Pratchett

or from source:

git clone git@github.com:aaronbassett/django-GNU-Terry-Pratchett.git
cd django-GNU-Terry-Pratchett
python setup.py install

Once installed add the middleware to you project:

MIDDLEWARE_CLASSES=(
...
'gnu_terry_pratchett.middleware.ClacksMiddleware',
),

We also provide a view decorator and a mixin for your Class-Based Views if you
don't want to have the header on every response.

from gnu_terry_pratchett.decorators import clacks_overhead
from gnu_terry_pratchett.views import ClacksMixin


# function view
@clacks_overhead
def my_view(request):
...
return my_response


# CBV
class MyView(ClacksMixin, View):
def get(self, request):
...
return my_response
Release History

Release History

This version
History Node

0.2.0

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-GNU-Terry-Pratchett-0.2.0.tar.gz (2.5 kB) Copy SHA256 Checksum SHA256 Source Mar 20, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting