aaronbassett / django-GNU-Terry-Pratchett

You know they'll never really die while the Trunk is alive
BSD 3-Clause "New" or "Revised" License
27 stars 6 forks source link

Locked up my Clacks #3

Open rrauenza opened 4 years ago

rrauenza commented 4 years ago

I added this to my Django project and it locked up my Clacks, gave me weird dreams, and then I was visited by a banshee in the middle of the night.

Is this a bug? The banshee might be reproducible...

Alex-Mackie commented 4 years ago

The Post Office Rules and Regulations must be revised for the century of the Fruitbat:

class ClacksMiddleware:

    def __init__(self, get_response):
        self.get_response = get_response

    def __call__(self, request):
        response = self.get_response(request)
        response['X-Clacks-Overhead'] = 'GNU Terry Pratchett'
        return response