Skip to content

Instantly share code, notes, and snippets.

@dekoza
Forked from antdking/django_GNUTerryPratchett.py
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dekoza/f37166f0561318cc17bd to your computer and use it in GitHub Desktop.
Save dekoza/f37166f0561318cc17bd to your computer and use it in GitHub Desktop.
# middleware to add GNU Terry Pratchett to django
# point to this class in your MIDDLEWARE_CLASSES
class GNUTerryPratchett(object):
@staticmethod
def process_response(request, response):
response['X-Clacks-Overhead'] = 'GNU Terry Pratchett'
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment