- Version:
- 0.1
pip install django-xpower==0.1.0
Django X Power is a simple middleware that adds the X-Powered-By header to any Django site.
Install
Install the module using pip/easy_install or whatever you like then add in the middleware into your MIDDLEWARE_CLASSES:
MIDDLEWARE_CLASSES = (
'xpower.middleware.XPoweredByMiddleware',
...
)
Configure
In your settings you may define the contents of the X-Powered-By header:
X_POWERED_BY = 'Django'
If you do not set this it will use the default which is 'Django/%(version)s where %(version)s is replaced with the version of Django that you are using.
Testing
An example project is provided so just run ./manage.py runserver and then you can confirm that it is working by running curl -i http://localhost:8000 | head. You should see something like this:
HTTP/1.0 200 OK Date: Wed, 07 Jul 2010 15:40:59 GMT Server: WSGIServer/0.1 Python/2.6.1 Content-Type: text/html X-Powered-By: Django/1.2.1 SVN-13336
Alternates
Some alternatives for the header contents:
Ponies with magical powers
Who the fuck knows
A series of tubes
Perfectionists with deadlines
Opinionated developers
Metadata
Release files for django-xpower 0.1.0
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-xpower-0.1.0.tar.gz | 1.8 kB | Without provenance | Details |
Release files / django-xpower-0.1.0.tar.gz
| Download URL | django-xpower-0.1.0.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34029587de05f572e46f6b2bb9669397e6c3546be7d16e34ecabafb59b86c007
|
|
BLAKE2b-256 checksum How to use checksums |
d14b085e5ea68d1667cb55dd6e7b6efd62ad87b84f76583fc22b6dc1642f9606
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-xpower 0.1.0
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.