﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34323	"Django form request is always response with ""GET"" instead of ""POST"" even when I use <form action="""" method=""post"">"	ODOshmocke	nobody	"I'm trying to use Django forms but every time I try to do a ""POST"" Method I get a ""GET"" as the return.

My HTML:
{{{
<!DOCTYPE html>
<html lang=""en"">
<head>
    <meta charset=""UTF-8"">
    <title>Title</title>

    <link rel=""stylesheet"" href=""https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css"" integrity=""sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"" crossorigin=""anonymous"">

    <style>
        input {
            width: 10%;
            margin: 0 auto;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }
    </style>

</head>

<body>


    {% load crispy_forms_tags %}

    <div class=""container"">
        <form action="""" method=""post"">

        {% csrf_token %}
            {% crispy form %}
        <input type=""submit"" class=""btn btn-primary mx-auto d-block"">
        </form>
    </div>


</body>
</html>
}}}


My views.py:
{{{
def register(request):


    if request.method == ""POST"":
        print(""Post"")
        form = UserInformationForm(request.POST)
        if form.is_valid():
            form.save()
            print(form)
            print(""Form is valid"")


    else:
        form = UserInformationForm()
        print(""Else"")


    return render(request, 'index.html', {""form"": form})
}}}


I hope someone can help."	Bug	closed	Forms	4.1	Normal	invalid	Forms, request, GET, POST		Unreviewed	0	0	0	0	0	0
