title: Object id in Django url
body: <p>I have a Post model like the one below:</p>
  <pre><code>class Post(models.Model):
      user = models.ForeignKey(User)
      posted = models.DateTimeField(auto_now_add=True)
      content = models.CharField(max_length=150)
      picturefile = models.ImageField(upload_to=&quot;post_content&quot;, blank=True)
  </code></pre>
  <p>I want to be able to put the id of each post in an url so I can visit each post individually. I did this before with the id of a user and was able to view the user's profile page.</p>
  <pre><code>    url(r'^profile/(?P&lt;username&gt;\w+)/$', Dashviews.public_profile_view, name='public_profile_view'),
  </code></pre>
  <p>But how do I make the same type of url, with an id of a post?</p>