title: How to receive html anchor tag value in Django views.py?
body: <p>I'm trying to send string value from anchor tag in a div in html i.e "news.id"
  to views.py. I'm not sure if "single_post/{{ news.id }}" is correct or not. news.id could be 5c9f94516fe3c761e420333a (for regex)</p>
  
  <p>.html</p>
  
  <pre><code>&lt;div class="post-continue-btn"&gt;
      &lt;a href="single_post/{{ news.id }}"  class="font-pt"&gt;Continue Reading 
          &lt;i class="fa fa-chevron-right" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I've passed this one somehow but now stuck at URLs.py, here is my URL code</p>
  
  <p>URL.py</p>
  
  <pre><code>urlpatterns = [
      url(r'^$',views.index,name='index'),
      url(r'^single_post/$', views.single_post),
      url(r'^&lt;slug:slug&gt;/$',views.single_post),
      url(r'^index/single_post/$', views.single_post),
      url(r'^index/$', views.index),
      url(r'^contact/$', views.contact),
      url(r'^about_us/$', views.about_us),
      path('admin/', admin.site.urls),]
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def single_post(request):
      project_name = request.GET.get('id')
      context = {'doc_data': search_query.doc_data(project_name)}
      return render_to_response('DeepNews/dummy.html', context)
  </code></pre>
  
  <p>How to code things right in .html anchor tag and then what will be the regex for this type of string "5c9f94516fe3c761e420333a" in URL.py so that I can get the value of "news.id" in views.py</p>