title: How to open a link in the same page
body: <p>Once I click on the link it opens in different page, I want to open it in 
  the same html page. Following is the code:</p>
  
  <p><strong>view.py:</strong></p>
  
  <pre><code>def index(request):
  all_client = Clients.objects.all()
  return render(request,'update/index.html',{'all_client' : all_client})
  
  def detail(request,album_id):
  
  client = get_object_or_404(Clients,pk=album_id)
  return render(request,'update/detail.html',{'client' : client})
  </code></pre>
  
  <p><strong>index.html:</strong></p>
  
  <pre><code>    &lt;body&gt;
  
      &lt;main&gt;
          &lt;nav id="nav"&gt;
          &lt;div class="innertube"&gt;
              {% if all_client%}
                  &lt;h3&gt; All the clients&lt;/h3&gt;
                  &lt;ul&gt;
                  {% for client in all_client %}
                      &lt;li&gt;&lt;a href="{% url 'update:detail' client.id %}" 
    target="MainWindow"&gt;{{client.client_name}}&lt;/a&gt;&lt;/li&gt;
                  {% endfor %}
                  &lt;/ul&gt;
                  {% else %}
                  &lt;h3&gt; There is no such client&lt;/h3&gt;
          &lt;/div&gt;
          &lt;/nav&gt;
      &lt;/main&gt;
      &lt;div class = "middle"&gt;
  
      &lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p><strong>update/urls.py:</strong></p>
  
  <pre><code>urlpatterns = [
   # /music/
   url(r'^$',views.index, name='index'),
   # /music/71/
   url(r'^(?P&lt;client_id&gt;[0-9]+)/$',views.detail, name='detail'),
   ]
  </code></pre>
  
  <p>The page is <code>detail.html</code> which I want to load in <code>index.html</code>
  <a href="https://i.stack.imgur.com/iAXkE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iAXkE.jpg" alt="enter image description here"></a></p>