title: Getting " MultiValueDictKeyError at /button/ 'text " error in a Django project
body: <p>Tring to create a demo Todo web app using Django and Bootstrap,
  Whenever I am trying to trigger a function using a button it's raising a "MultiValueDictKeyError at /button/" Error. I have set an input form name "text" and receiving it </p>
  
  <p><strong>This is the view function</strong> </p>
  
  <pre><code>def index(request):
  
      todoData = Todo.objects.all().order_by("date")
      return render(request, 'index.html',{
           "todo": todoData
  
           }
          )
  @csrf_exempt
  def submit(request):
       current_date = timezone.now()
       content = request.POST["text"]
       Todo.objects.create(date = current_date , text = content)
  
       return render(request,'index.html')
  </code></pre>
  
  <p><strong>Here's the "index.html"</strong></p>
  
  <pre><code>{% extends "base.html" %}
  {% load static %}
  
  
  {% block content %}
  &lt;div class='row mt-4'&gt;
      &lt;div class='col'&gt;
          &lt;h2&gt;Add Task :&lt;/h2&gt;
                  &lt;form class='form-inline'action='button/' method='POST' name="text"&gt;
                     &lt;input type="text" class="form-control mb-2 mr-sm-2" placeholder="text here..."&gt;
                     &lt;button type="submit" class="btn btn-primary mb-2"&gt;Add&lt;/button&gt;
                                                          &lt;/form&gt;
     &lt;/div&gt;
     &lt;/div&gt;
     &lt;div class='col mt-4'&gt;
         &lt;ul class="list-group"&gt;
    &lt;li class="list-group-item"&gt;Dapibus ac facilisis in&lt;/li&gt;
  
  &lt;/ul&gt;
     &lt;/div&gt;
  
  {% endblock content %}
  </code></pre>