1.1 --- a/agdj/blog/views.py Sun Feb 01 01:10:45 2009 -0500
1.2 +++ b/agdj/blog/views.py Sun Feb 01 01:35:02 2009 -0500
1.3 @@ -8,8 +8,14 @@
1.4 from agdj.utils import use_template
1.5
1.6
1.7 +def redirect_to_date_version(request, slug):
1.8 + "Redirect requests from the old URL scheme to the new one"
1.9 + post = get_object_or_404(models.Entry, slug=slug)
1.10 + return HttpResponseRedirect(post.urls.view)
1.11 +
1.12 +
1.13 @use_template("blog/single_post.html")
1.14 -def single_post(request, slug):
1.15 +def single_post(request, year, month, day, slug):
1.16 "Show a single post"
1.17
1.18 post = get_object_or_404(models.Entry, slug=slug)