djangosnippets.org: Latest snippets tagged with 'short'https://djangosnippets.org/tags/short/2009-02-13T18:33:39.081691-06:00Create short URL redirects for site urls.
2009-02-13T18:33:39.081691-06:00matt.geek.nzhttps://djangosnippets.org/snippets/1323/<p>This allows you to host your own URL shortening service for your site's internal urls. By adding this class as a Mixin to your models, any model with a get_absolute_url method will have a get_short_url method also, which either returns an existing redirect or creates a new one and returns …</p>
Freely redistributable