How to Receive Data From a Django Form Using a POST Request (Django Tutorial) | Part 46

preview_player
Показать описание
Enjoyed my video? Leave a like!
Рекомендации по теме
Комментарии
Автор

These videos have been very helpful with forms. Thanks!

flickflightgroup
Автор

Love your manner of explanation, Max! Thank you.

veronikapost
Автор

WENA GASPARIN Y LA CTM ME RE FUNCIONO, TE GANASTE UN LIKE

FullShakeTeam
Автор

Sir you have saved me 10hrs of work. Subscribing now! Thank you

samkomo
Автор

Thank you, Max. Very clear explanation.

Arsenico
Автор

Thanks so much Max, love your explanations

EatMyApplez
Автор

For anyone getting an error "local variable 'text' referenced before assignment", in my case the response in console showed:
"GET /create/ HTTP/1.1" 500 63600
where create is the viewmethod, called after clicking on url bar and pressing enter.
To avoid this error I added the form field argument required=False

bugfixor
Автор

I'm using postman to test my app. From there using form-data I will enter key one name and mention type is file. Values I will upload a file. How to get that key and value in the django app to perform operations on that file and resend the JSON response of that operation output.

moviesandcartoons
Автор

in my case case page refreshes but the text doesn't display in the h2 tag..I don't what is the problem..???

cloud_computing
Автор

I'm getting an Error 》 local variable 'text' refrenced before assignment. ;-;

steakanemon
Автор

For anybody getting that error involving 'text referenced before assignment', my issue was that my form was not passing the form.is_valid() conditional. What I did to fix it was get rid of my normal html form, and defined all the fields in the forms.py homeform class. Then, used {{ form.as_p }}. Hope this solves any problems.

oliverbuckley
Автор

what if I wanted to create a form quiz in Django. So there is a multiple choice question and Django remembers the selection that the person chose and acts accordingly. the action would be different depending on the choice that the person chose. How would I implement this feature/function? Thanks!

isabel
Автор

I downloaded ur django tutorials code but while running it showing an error
commandError: you must set settings.ALLOWED_HOST if DEBUG is False

Omkar-pjvv
Автор

how can i show post created only by logged in user

princenihith
Автор

I get "local variable 'text' referenced before assignment"

billgames
Автор

how to hidden values pass-through post to get

SC-sulc
Автор

Is there way to handle HttpResponse returned by post form ?

sranstankovic
Автор

He didn't explain how it routes to the post method instead of the get method. When I submit the form, it just goes back to get. Frustrating. Any help?

mrpmac
Автор

how can I call a function on submitting the form?

gourbera
Автор

Every time I refresh the page the Terminal says "GET" instead of "POST". What happen?

ricardochirinos