Q: How to use multiple forms in Django 2.1? Sorry for asking similar questions, but other similar questions/answers do not help me with Django 2.
Question:
I have two actions, one is to show some data as a table. 
In the second form, I edit this data and will save it as a table using Django in the database. Here is some code:
simple_upload.html
<form method="post" enctype="multipart/form-data">
    {% csrf_token %}
    <input type="file" name="myfile" value="formOne">
    <button class="btn btn-primary" type="submit">Upload</button>
</form>

second form:
<form method="post" enctype="multipart/form-data">
    {% csrf_token %}
    <input type="hidden" name="mytable" value="formTwo">
    <table class="table" border="1" id="tbl_posts">
    <thead>
      <tr>
...

    </tbody>
    </table>
    <input type="submit" value="Submit">
 </form>

views.py
def simple_upload(request):
    if request.method == 'POST':
    ...
    if request.is_ajax():
        return render(request,
                    'project/simple_upload.html',
                    {'section': 'project', 'lines': zipped})
    return render(request,
                'project/list.html',
                {'section': 'project', 'lines': zipped})
return render(request, 'project/simple_upload.html')

urls.py:
urlpatterns = [
...
    path('', views.simple_upload, name='list'),
...
]

list.html:
...
{% include "project/simple_upload.html" %}
...

In this case, only the first form works, the second one fails.
Question 1: Can I do if request.method == 'POST' and formOne in request.POST:", I try but it does not react at all.
Question2: How can I write two methods and assign them using urls.py?

A: To show the data in a table, you can try Tables2 in Django, this might make things easier for you
Also in your case, you might need to make different views for different forms, Since both of them make a POST request, it will be difficult to differentiate.
You can easily do that by specifying action attribute in form tag.
Form 1
<form id="form1" method="post" action="view/for/form/1" enctype="multipart/form-data">
{% csrf_token %}
<input type="file" name="myfile" value="formOne">
<button class="btn btn-primary" type="submit">Upload</button>
</form>

Form 2
<form method="post" action = "view/for/form/2" enctype="multipart/form-data">
{% csrf_token %}
<input type="hidden" name="mytable" value="formTwo">
<table class="table" border="1" id="tbl_posts">
<thead>
  <tr>
...

</tbody>
</table>
<input type="submit" value="Submit">
 </form>

Later you can redirect using json responses to avoid refreshing the page
in your urls.py add
url('view/for/form/2', save_form, name='save'),

in your views.py
def save_form(request):
    #your save logic using request.post
    return redirect('your/current/url')

