Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  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.

Project details

Download files

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

Files for dj-casing, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size dj-casing-0.1.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page