djangosnippets.org: Latest snippets posted by matt.geek.nzhttps://djangosnippets.org/users/matt.geek.nz/2009-02-13T18:33:39.081691-06:00matt.geek.nzCreate 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