I
I
idarif_it2017-05-19 16:24:43
Django
idarif_it, 2017-05-19 16:24:43

Handling data without a Django form?

Is it possible to handle the POST request data by creating the form in the template itself rather than passing it in the view?
If possible, please tell me how. Thanks for the help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2017-05-19
@idarif_it

Can.

request.POST['name_of_input']
request.POST['name_of_another_input']

But why? The form is more convenient. She herself brings the string data to the desired form.

A
Astrohas, 2017-05-19
@Astrohas

Yes, it's called HTML. A useful thing, however, especially for a Web programmer. From the server side, you can use catches request.POST['field_name']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question