Skip to main content
Latest Version Build Status Downloads License

This middleware provides the inverse of the Django CommonMiddleware APPEND_SLASH feature. It can automatically remove trailing URL slashes and 301 redirect to the non-slash-terminated URL. This behavior is performed if the initial URL ends in a slash and is invalid, removing the trailing slash produces a valid URL, and REMOVE_SLASH is set to True. Otherwise there is no effect.

For example, foo.com/bar/ will be redirected to foo.com/bar if you don’t have a valid URL pattern for foo.com/bar/ but do have a valid pattern for foo.com/bar and REMOVE_SLASH=True.

Download files

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

Source Distribution

django-unslashed-0.3.0.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file django-unslashed-0.3.0.tar.gz.

File metadata

File hashes

Hashes for django-unslashed-0.3.0.tar.gz
Algorithm Hash digest
SHA256 62430dc135bff43ac970fccf2bba180288f85f0dd179ad344d0c01da2d4c5340
MD5 f09ff77fe9f65bb23cfe2f8506cf727e
BLAKE2b-256 fee0ddb9bd7712f6bda335223906e8971b526837fec5fb259046d37e4637732c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 file

0.2.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page