title: why do my django urls render the wrong template?
body: <p>I'm suprised that I cannot access my product detail page through the url and I don't understand why since I've already done this basic thing plenty of times...</p>
  
  <p>I have a page where all my products are displayed, when the user click on a product he is redirected to the product detail, that's it.</p>
  
  <p>Somehow when I click a link linked to the product detail or type de correct path to the url it loads the same page where all the product are shown but it doesn't even call the product detail view, why so ?</p>
  
  <p>Here are the <strong>views</strong> :</p>
  
  <pre><code>def rcdex(request):
      list = Liste.objects.all()
      return render(request, 'rcdex.html', {'list':list,})
  
  def rc_detail(request, id):
      list = Liste.objects.get(id=id)
      return render(request, 'rc_detail.html', {'list':list,})
  </code></pre>
  
  <p>Here are the <strong>urls</strong> :</p>
  
  <pre><code>url(r'^', views.rcdex, name="rcdex"),
  url(r'^rc/(?P&lt;id&gt;\d+)/$', views.rc_detail, name='rc_detail'),
  </code></pre>
  
  <p>Here is how I call the <strong>rc_detail</strong> view on the template :</p>
  
  <pre><code>&lt;th&gt;&lt;a href="{% url 'rc_detail' l.id %}"&gt;{{ l.entreprise }}&lt;/a&gt;&lt;/th&gt;
  </code></pre>
  
  <p>I don't get why it doesn't show me the correct template (<code>rc_detail.html</code>) but instead reload <code>rcdex.html</code> ?</p>