title: how to use the href attribute in django templates
body: <p>When I try to use a link in my Django template from <code>/appname/index/</code> to get to <code>/appname/detail/###</code> I am instead getting to <code>/appname/index/detail/###</code> which is not what I'm trying to get so my app can't find it in the urlconf of course.  </p>
  
  <p>First the urls.py line for the detail page</p>
  
  <pre><code>url(r'detail/(?P&lt;jobID&gt;\d+)/$', 'appname.views.detail')
  </code></pre>
  
  <p>Additionally, the root urlconf</p>
  
  <pre><code>urlpatterns = patterns('', 
      url(r'^appname/', include('appname.urls')),
      url(r'^admin/', include(admin.site.urls)),
  )
  </code></pre>
  
  <p>Next the template code trying to get there</p>
  
  <pre><code>{% for job in jobList %}
      &lt;a href="detail/{{ job.id }}/"&gt;{{ job.name }}&lt;/a&gt;
  </code></pre>
  
  <p>I'm not sure what else might be applicable information, just ask if you would like to see something else.  I also tried :</p>
  
  <pre><code>&lt;a href="{% url 'appname.views.detail' %}/{{ job.id }}"&gt;{{ job.name }}&lt;/a&gt;
  </code></pre>
  
  <p>But that didn't work either.  Thank you in advance for any help.</p>