Skip to main content

Add branding headers to you response

Project description


Add branding headers to response.


* Django


Install it with pip (or easy_install)::

pip install django-branding


Add branding middleware from branding to you django config

MIDDLEWARE_CLASSES += 'branding.middleware.BrandingMiddleware',

Define headers variables in settings

'X-Programming': 'Lispython',
'X-Revision': '232134'

X_SERVER = "Super Server"


Example of headers on

In [1]: import human_curl as hurl

In [2]: r = hurl.get('')

In [3]: r.headers
{'cache-control': 'max-age=600',
'connection': 'keep-alive',
'content-language': 'ru-ru',
'content-length': '55239',
'content-type': 'text/html; charset=utf-8',
'date': 'Sun, 29 Apr 2012 12:51:12 GMT',
'expires': 'Sun, 29 Apr 2012 13:01:12 GMT',
'last-modified': 'Sun, 29 Apr 2012 12:51:12 GMT',
'link': '<>; rel="platform"',
'server': 'Super Server',
'vary': 'Accept-Language, Cookie, Accept-Encoding',
'x-powered-by': 'D Zone',
'x-programming': 'Alex Lispython (,',
'x-revision': '5215de3',
'x-version': '20120311.0013-0'}

Project details

Download files

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

Files for django_branding, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size django_branding-0.0.6.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page