N
N
ngproconsult2021-10-28 20:31:21
Django
ngproconsult, 2021-10-28 20:31:21

When you go to the page by submitting the form using the POST method, the body of the view function is not processed, but the main page of the project (index) opens immediately?

When you go to the page by submitting the form using the POST method, the body of the view function is not processed, but the main page of the project (index) immediately opens, although everything is written correctly in the url file. When going to a page via a GET request without parameters, the body of the view function is processed as expected and the correct page is opened. Has anyone else experienced a similar issue and knows how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2021-10-29
@Viji

you can see the code... and look in the browser, is there a redirect request (301 or 30X) to the main page?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question