404 error after changing post.pk to post.slug
Thanks for doing this tutorial.
I'm having some trouble with the section having to do with changing the url into having slugs in it instead of numbers. When I refresh my blog page, the URLs linking to the individual posts still contain numbers. When I click on those links, my browser tries to run open these urls with numbers, at which it is unsuccessful, resulting in a 404 error. I can't figure out what I'm doing differently from your example that's causing this error.
Here's my post_list.html file: http://pastebin.com/kBdZdjSt
I've searched around, but no one seems to be having the same problem. Could it be something to do with using Django 1.5.1?
Answers
it turns out I was editing the wrong post_list.html file. I need to go one folder deeper to blog/templates/blog/post_list.html