I have updated my url pattern from:
(r'^(?P<slug>[-\w]+)/$', 'bugs.views.bug_detail'),
to
(r'^issue/(?P<id>[0-9]+)/(?P<slug>[-\w]+)/$', 'bugs.views.bug_detail'),
So I'm now relying on the primary key in the URL since the slug can change at any time. I have about 40-50 links that I need to 301 to spiders/crawlers.
What's the easiest way of doing a 301 within Django instead of having to hardcode the Redirect 301
s in my Apache conf?