title: Enable sluggified URLs in Django
body: <p>I am trying to enable sluggified URLs in Django of the form that SO uses: example.com/id/slug.
  I have no problem enabling slugs, and have URLs currently set up of the form: <a href="http://127.0.0.1:8000/articles/id/" rel="noreferrer">http://127.0.0.1:8000/articles/id/</a> (eg. /articles/1/) and that works fine. The corresponding URLpattern is:</p>
  
  <pre><code>(r'^(?P&lt;object_id&gt;\d+)/$',  'django.views.generic.list_detail.object_detail', info_dict),
  </code></pre>
  
  <p>If I change the URL pattern to:</p>
  
  <pre><code>(r'^(?P&lt;slug&gt;\d+)/$',  'django.views.generic.list_detail.object_detail', info_dict),
  </code></pre>
  
  <p>Then I recieve the following eror when I navigate to <a href="http://127.0.0.1:8000/articles/another-article/" rel="noreferrer">http://127.0.0.1:8000/articles/another-article/</a>:</p>
  
  <blockquote>
    <p>The current URL, articles/another-article/, didn't match any of these.</p>
  </blockquote>
  
  <p>If, however, I try:</p>
  
  <pre><code>http://127.0.0.1:8000/articles/1/
  </code></pre>
  
  <p>I get the error:</p>
  
  <blockquote>
    <p>No article found matching the query</p>
  </blockquote>
  
  <p>Ultimately I want to be able to navigate to an aricle via either:</p>
  
  <blockquote>
    <p><a href="http://127.0.0.1:8000/articles/1/" rel="noreferrer">http://127.0.0.1:8000/articles/1/</a>
    or
    <a href="http://127.0.0.1:8000/articles/1/another-article/" rel="noreferrer">http://127.0.0.1:8000/articles/1/another-article/</a></p>
  </blockquote>