title: How to pass parameter from form post to view in Django - python ?
body: <p>I'm new to Django and I am stuck at how can I use my html request form to show in view : </p>
  
  <p><strong>1. HTML form :</strong> </p>
  
  <pre><code>&lt;form action="" method="post"&gt;
      &lt;label for="your_name"&gt;Your name: &lt;/label&gt;
      &lt;input id="your_name" type="text" name="name" value="{{ name }}"&gt;
      &lt;input type="submit" value="OK"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>2. views/formout.py</strong> </p>
  
  <pre><code>def pageform(request):
  
      name = request.POST.get('name', '')
  
      return render(request, 'en/public/index.html',{name : "name"})
  </code></pre>
  
  <p><strong>3. URL</strong></p>
  
  <pre><code>url (r'^form$', 'jtest.views.formout'),
  </code></pre>
  
  <p><strong>4. index.html</strong> </p>
  
  <pre><code>&lt;p&gt;
      name : {{name}}
  &lt;/p&gt;
  </code></pre>