Having some trouble finding how to pass a var captured in a url to my view.
say I have a model like this...
title = models.CharField()
and a title of...
title = 'this is a post'
then how would django capture something in the URL like this...
url/this_is_a_post/
and lookup the model field like this...
x = Post.objects.get(title='this is a post')
I have another URL that is capturing a name with a space in it, and when I use a URL with "_"'s in it, it looks it up correctly, but in this case, it is telling me there is no matching query. I have tried to look in the docs, but I couldn't find anything although I know it has to be there, somewhere.