Implementing POST Redirect in Django

preview_player
Показать описание

DJ 09 Forms 06 Redirect
Рекомендации по теме
Комментарии
Автор

I'M SO GRATEFUL FOR YOU MAKING THIS VIDEO! I literally spent HOURS looking for this simple solution at 3:30, I can't believe that no one on the internet can articulate what you could articulate in a single image. Man, I love you. Thank you so much!

juanalvarez-perez
Автор

I FINALLY UNDERSTAND why we do a redirect after a POST. Thank you for explaining the problem and not just saying you have to do it.

paulmerlitti
Автор

Totally helped me not only in by site but also getting a clear understanding of how to handle the POST request. Thanks a lot.

ishaanmittal
Автор

Chuck, I wish I would've found you when I first began learning Django and Web Dev. My education would've been much faster and smoother.

Colstonewall
Автор

Thank you sir
This video helped me realise a problem that I wasn't considering.
I had to views processing and next.
On a post request to processing it redirect to next where it had a get request but the problem was I was implementing the logic of my goal in the get of next view.
Which made I app vulnerable if user refresh the page of next view which run my logic of next view again even when I haven't sent post to processing
Really grateful sir

signedin
Автор

Nice video, the hand drawing across the code helps explaining. I came here wondering how to retrieve form POST data but walk away with more than that

johankjellin
Автор

@Chuck Severance This lecture is missed from the playlist, after lecture 54, this should be lecture 55 but its not there in the playlist

VikasKM
Автор

Dr.Chuck what if a user press backspace to get back to the previous page where we have the forum/order, will the browser again ask for sending that data again.

I am asking this because it is common to press backspace and get back to the same page even if you have been redirected by the server etc.

haroonrehman
Автор

Hi Chuck, thanks a lot, i found your video becuse i found my code messy whane i wanted to add pagination and i discovered that i used a post request to also grab my search. Now my code is better. I use a post request to get what is entered by user and i can store it in session and have it after the redirect to the get method. As i'm using pagination it's ok but now i need to delete this session message when i click on another button for example. Do you think my understanding of use of session message is ok ?

flenoir
Автор

what is the checkguess function here? it seems like a custom function.

marcc
Автор

hey can anyone help me my website has login page with post as home page then it goes to main content page there is a button to delete my record after delete i want to redirect to the content page but it has a post request of login page so how can i manage it help

sarthakshinde
Автор

The parentheses in "(msg)" are redundant here.

marcc