title: Submitting data from a form to django view
body: <p>When I open the html file it displays as expected and when I enter data in the text box and submit, It redirects me to <code>localhost/myapp/output/</code> but why is the data I enter in the text box not submitted for example like <code>localhost/myapp/output/data_I_submitted</code></p>
  
  <p>My basic html file:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;db app&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  {% csrf_token %}
  &lt;form action="output/" method="post" name="Input"&gt;
  Data : &lt;input type="text" name="text"&gt;
  &lt;input type="submit" value="submit"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In my <code>app.urls</code> file:</p>
  
  <pre><code>urlpatterns = patterns('',
      url(r'^$',views.index),
      url(r'^output/(?P&lt;text&gt;\w+)/$',views.return_data)
  )
  </code></pre>
  
  <p>Finally the <strong>view</strong>:</p>
  
  <pre><code>def return_data(request,text):
      return HttpResponse('entered text ' + text)
  </code></pre>