title: Can't work modal form with method POST in Django
body: <p>Thats my first project in Django. I want to make table and add items with modal form. I use Mysql database. items which addes manually from phpmyadmin already exist on table but when i try add from modal form it cant added.
  views.py</p>
  
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse
  
  
  from .models import Client
  
  def viewpost(request):
  
      post_list = Client.objects.all()
      context = {
          'posts': post_list
      }
      return render(request, 'mysite/viewtable.html', context)
  
  def add_client(request):
      if request.method == 'POST':
          post = Client()
          post.name = request.POST.get('name')
          post.surname = request.POST.get('surname')
          post.address = request.POST.get('address')
          post.gender = request.POST.get('gender')
          post.age = request.POST.get('age')
          post.save()
  
          return render(request, 'mysite/viewtable.html')
  
      else:
          return render(request, 'mysite/viewtable.html')
  </code></pre>
  
  <p>url.py:</p>
  
  <pre><code>from django.urls import path
  from . import views
  urlpatterns = {
      path('viewtable/', views.viewpost, name='viewpost'),
      path('viewtable/#add_data_Modal', views.add_client, name='add_client'),
  }
  </code></pre>