title: how to pass url to a model field lookup in django
body: <p>Having some trouble finding how to pass a var captured in a url to my view. </p>
  
  <p>say I have a model like this...</p>
  
  <pre><code>title = models.CharField()
  </code></pre>
  
  <p>and a title of...</p>
  
  <pre><code>title = 'this is a post'
  </code></pre>
  
  <p>then how would django capture something in the URL like this...</p>
  
  <pre><code>url/this_is_a_post/
  </code></pre>
  
  <p>and lookup the model field like this...</p>
  
  <p>x = Post.objects.get(title='this is a post')</p>
  
  <p>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. </p>