Skip to content

Instantly share code, notes, and snippets.

@antdking
Last active August 29, 2015 14:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save antdking/e52bad2c218b74035917 to your computer and use it in GitHub Desktop.
Save antdking/e52bad2c218b74035917 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