title: how to fix error in django addition url path not find not link to new code
body: <p>My url path finder doeds not find result.html page when i click on submit button it will not find that result.html page . it can not find the second url path.Iam trying to add two numbers in Django a basic django Programmge in first it will open the home.html page then on click submit it will not open the result.html page on which the result is displaed</p>
  
  <p>i have tried to import pattrens but it will show errors pattrens can not be imported somethig like i have also tried to direct the page from 
  
  <h2>This is my url.py file</h2>
  
  <pre><code>from django.conf.urls import  include, url
  from django.contrib import admin
  from . import views
  admin.autodiscover()
  
  urlpatterns =  [
  
      url('', views.home,name='home'),
      url(r'^add/', views.add, name ='add'),
  
  
  ]
  
   ##this is my home.html file
  
  
  {% extends 'base.html' %}
  
  {% block content %}
  
  
  &lt;body&gt;
  &lt;h1&gt; Hello {{name}} !!!!!!! &lt;/h1&gt;
  
  &lt;form  action="add"&gt;
    Enter First Number : &lt;input type="text" name ="first"&gt;
    Enter Second Number : &lt;input type="text" name ="second"&gt;
   &lt;input type ="submit"&gt;        
  
  &lt;/form&gt;
  
  &lt;/body&gt;    
  
  ## this is my view.py file
  
  from __future__ import unicode_literals
  
  from django.shortcuts import render
  from django.http import HttpResponse
  # Create your views here.
  
  
  def home(request):
      return render(request,'home.html',{'name': 'Harsh'})
  
  def add(request):
      val1= int(request.GET['first'])
      val2= int(request.GET['second'])
  
      res = val1 + val2
  
      return render(request,'result.html',{'result':res}) 
  
  ## this is my result.html file 
  
  
  {% extends 'base.html' %}
  
  {% block content %}
  
  Result : {{result}}
  
  
  {% endblock %}
  
  
  #this is base .html
  
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&gt;
      &lt;title&gt;Tisraa&lt;/title&gt;
  &lt;/head&gt;
  &lt;body bgcolor="cyan"&gt;
  
      {% block content %}
  
      {% endblock %}
  </code></pre>
  
  <p>
     </p>
  
  <p>i did't understand where the proble is because when i rub or erase  the
  first url code that is     url('', views.home,name='home'),
  it will show the result page but it will not coonect when i push the submit button<code>enter code here</code></p>