Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Allow case insensitive URLs while enforcing the right URL.

Project Description

Allow case insensitive URLs while enforcing the right URL.

Apply the case_insenstive decorator if you have URLs which should match regardless of case, but you don’t want those URLs hanging out there when a user visits.


Install dj-casing:

pip install djcasing

Decorating a view

Then use it in a project:

from djcasing import case_insenstive

def some_view(request, urlarg_one, urlarg_two):
    # do stuff here

Now URLs of the form can be matched to and visitors will be immediately redirected to the latter URL.


BSD licensed.

Release History

This version
History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(2.8 kB) Copy SHA256 Hash SHA256
Source None Apr 16, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting