skip to navigation
skip to content

django-removewww 0.1.2

A Django middleware application that removes the WWW subdomain

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.


$ pip install django-removewww

Add to

    # ...


Adding to INSTALLED_APPS is unnecessary unless you want to run the tests.

File Type Py Version Uploaded on Size
django-removewww-0.1.2.tar.gz (md5) Source 2017-07-17 3MB
django_removewww-0.1.2-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-07-17 5KB