Skip to main content

logo.png

Django Cool URLs

Stop killing Palestinian civilians PyPI PyPI License Ruff Black

Tim Berners-Lee is credited with saying that "cool URLs don't change", but sadly that's just not the case. Cool URLs are changing all the time because the people who run those sites are moving stuff around or just deleting whole pages and domains.

If you have a long-running site full of links like a blog however, this means that over time your site can be pointing to a lot of dead links, which is bad for your SEO. It's also annoying when you're looking over a post from 10 years ago that says something like "this is some really nice work" and that link 404s.

With django-cool-urls, you can link to whatever you like and the state of that page is captured from the moment you linked to it. If the page ever disappears from the web, you can automatically switch over to the local copy.

All you need to do is switch from doing this:

<a href="https://something-awesome.ca/">Nifty!</a>

to this:

<a href="{% cool_url 'https://something-awesome.ca/' %}">Nifty!</a>

If that page ever 404s, your site will switch to showing the locally cached version. Think of it like your own private archive.org.

Currently, this project supports caching most pages (see the Caveats page) as well as embedded video from YouTube, Vimeo, and Instagram.

Metadata

Release files for django-cool-urls 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-cool-urls 0.2.1
File Size Uploaded Provenance Actions
django_cool_urls-0.2.1.tar.gz 31.7 kB Without provenance Details for django_cool_urls-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-cool-urls 0.2.1
File Interpreter ABI Platform Actions
django_cool_urls-0.2.1-py3-none-any.whl Python 3 none any Details for django_cool_urls-0.2.1-py3-none-any.whl

Total release size: 73.4 kB

Release files / django_cool_urls-0.2.1.tar.gz

Download URL django_cool_urls-0.2.1.tar.gz
Size 31.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3143ecbfe2020bc870f7c4986bf71aa76befcbf920a7fca2edacfb895da4110b
BLAKE2b-256 checksum
How to use checksums
5089da31421c705849efcf8a61559c02222586d7a92223e19037af3e9f8e73a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Linux/6.9.3-arch1-1

Release files / django_cool_urls-0.2.1-py3-none-any.whl

Download URL django_cool_urls-0.2.1-py3-none-any.whl
Size 41.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2217c51cec2b1b149b0c06f4bb6d31e0e4bacd52105bc3d06e49bc6d8fbfb2a
BLAKE2b-256 checksum
How to use checksums
de302904467e79082c10524039e7e20fb7f3da8372962f3f31f5dfeb978ec7ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Linux/6.9.3-arch1-1

Security for django-cool-urls 0.2.1

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.

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