Can't get post url to be slug on post list site
For some reason I can't get my blog to show the slug url on the post list site. The links are still /blog/2 instead of /blog/a-nice-slug.
My files are here: https://github.com/alexjj/microblog
if someone could look at my model.py or post_list.html (or something else!) to see what I've done wrong I'd appreciate it.
Sorry You must be a logged in, registered user to answer a question.
Answers
i can't see the answers
In get_absolute_url(), on your model, you're reversing 'posts:detail' but your URL namespacing is 'blog'.