Skip to main content

Freeze outgoing links in time so that your site never 404s on external pages

Project description

logo.png

Django Cool URLs

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.

Project details


Download files

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

Source Distribution

django_cool_urls-0.1.0.tar.gz (31.0 kB view details)

Uploaded Source

Built Distribution

django_cool_urls-0.1.0-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

Details for the file django_cool_urls-0.1.0.tar.gz.

File metadata

  • Download URL: django_cool_urls-0.1.0.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.9.1-arch1-1

File hashes

Hashes for django_cool_urls-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1e3fefee119a7eaf17b5684ae9d6117773f3a58abfec94fb67d44c61f8c2a56
MD5 d15551f3d183a73a1b27f6a5000b67c1
BLAKE2b-256 57695f0ab4345513150a4ca0f109280843aef7e2ba78ccb5bc6b69cdb143f039

See more details on using hashes here.

File details

Details for the file django_cool_urls-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_cool_urls-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 41.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.9.1-arch1-1

File hashes

Hashes for django_cool_urls-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56cf781a41988b96ff7167c07cd3ab26bc0344ca1fa50961155cb549b230cd0d
MD5 34abc49b4b5b6b7d7ca2565f0927b863
BLAKE2b-256 c276c052c494008333a65fb3e5a0bfa8af8091a1ab5d60fad949eec8781d6edf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page