---------------
Add branding headers to response.
Requirements
============
* Django
Installation
============
Install it with pip (or easy_install)::
pip install django-branding
Usage
=====
Add branding middleware from branding to you django config
MIDDLEWARE_CLASSES += 'branding.middleware.BrandingMiddleware',
Define headers variables in settings
BRANDING = {
'X-Programming': 'Lispython',
'X-Revision': '232134'
}
X_SERVER = "Super Server"
Example
=======
Example of headers on http://dzone.me
In [1]: import human_curl as hurl
In [2]: r = hurl.get('http://dzone.me')
In [3]: r.headers
Out[3]:
{'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': '<dzone.me>; rel="platform"',
'server': 'Super Server',
'vary': 'Accept-Language, Cookie, Accept-Encoding',
'x-powered-by': 'D Zone',
'x-programming': 'Alex Lispython (alex@dzone.me, github.com/lispython)',
'x-revision': '5215de3',
'x-version': '20120311.0013-0'}
Metadata
Release files for django_branding 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_branding-0.0.6.tar.gz | 3.5 kB | Without provenance | Details |
Release files / django_branding-0.0.6.tar.gz
| Download URL | django_branding-0.0.6.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95ee0829c1b09d2a1aa9e9ef99c9c3689697840cdddb7e479e62fb0d8cc49232
|
|
BLAKE2b-256 checksum How to use checksums |
e0a1234891d4570f5d0cb0508c6ccbeeb5b853013a5b198834070e95540991be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django_branding 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.