title: Django named urls, generic views?
body: <p>So, here is one of my urls.py</p>
  
  <pre><code>urlpatterns = patterns('items.views',
      url(r'^(?P&lt;item_id&gt;[\d+])/$', 'view_listing', name="item_view"),
  )
  </code></pre>
  
  <p>And in my template, I can do this: <code>&lt;a href="{% url item_view 1 %}"&gt;here&lt;/a&gt;</code> and I'll get a link to the right page. Everything works great!</p>
  
  <p>But, here is another one</p>
  
  <pre><code>urlpatterns = patterns('django.views.generic.list_detail',
      (r'^(?P&lt;slug&gt;[\w-]+)/$', 'object_detail', dict(page_info, slug_field='slug'), "page_view"),
  )
  </code></pre>
  
  <p>But in my template if I try this: <code>&lt;a href="{% url page_view slug='TermsAndConditions' %}"&gt;Terms and Conditions&lt;/a&gt;</code> or this <code>&lt;a href="{% url page_view 'TermsAndConditions' %}"&gt;Terms and Conditions&lt;/a&gt;</code> it errors out with this error:</p>
  
  <pre><code>TemplateSyntaxError at /
  
  Could not parse the remainder: ''TermsAndConditions '' from ''TermsAndConditions ''
  </code></pre>
  
  <p>Does anyone know if it's possible to use named urls with generic views and the <code>url</code> template tag like this? Or the right way to get it to work with generic views?</p>
  
  <p>Thanks.</p>