Django Remove WWW
Django Remove WWW is a Django middleware application that removes the WWW subdomain.
The middleware inspects the request’s host for the www subdomain, and redirects if REMOVE_WWW is True. It silently passes if PREPEND_WWW is also True. For some reason, Django won’t include a REMOVE_WWW setting. Thanks to Daniel Ryan’s GitHub Gist for some inspiration.
Install
$ pip install django-removewww
Add to settings.py.
MIDDLEWARE = [
# ...
'removewww.middleware.RemoveWwwMiddleware',
]
REMOVE_WWW = True
Adding to INSTALLED_APPS is unnecessary unless you want to run the tests.
Metadata
Release files for django-removewww 0.1.2
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-removewww-0.1.2.tar.gz | 3.2 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_removewww-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 3.3 MB
Release files / django-removewww-0.1.2.tar.gz
| Download URL | django-removewww-0.1.2.tar.gz |
|---|---|
| Size | 3.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6200f79971db313e55e851a306aef4590b8e8fa550c1d067cd389381a1bf806d
|
|
BLAKE2b-256 checksum How to use checksums |
bd8f8c9440c9ac91dd1a75f9134a3bcf77977dbdc83474bed219e32db69866bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_removewww-0.1.2-py2.py3-none-any.whl
| Download URL | django_removewww-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
029d2dfcd4452c250f7f076b5595eefe67f4293ebd89c8a778c4bbb251e36fdb
|
|
BLAKE2b-256 checksum How to use checksums |
d68a56b091318a7d09d2f34911f0e99defa2d45776d0b602261f09e5f644906f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-removewww 0.1.2
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.