jsonify is used to send data back in json format, when a request is received through javascript code. That dictionary is shown in json format in the "response" part of our javascript code. json is the lingua franca of sending and receiving data, so that's why the jsonify library is important.
I got a problem. When I write the email in the box that already exists I get the normal message that the user already exists and is fine, but when I write a new email after deleting the previous one, the message disappear and then I click the submit button and the message appears again and doensnt let me submit even though the email is now different.
If you refresh the page do you still get the same message? This may be an issue with your browser rather than the program. You may also want to look at your output in the terminal and the browser to get more information about why this is occurring. Feel free to send it to me as well :)
Thank you for this great work. your easy explanation and real time showing the code is truly helping to undestand.
Hi! I didn’t understand why do we use jsonify + where will we use the dictionary that we created with jsonify
jsonify is used to send data back in json format, when a request is received through javascript code. That dictionary is shown in json format in the "response" part of our javascript code. json is the lingua franca of sending and receiving data, so that's why the jsonify library is important.
Okay thanks!!
I got a problem. When I write the email in the box that already exists I get the normal message that the user already exists and is fine, but when I write a new email after deleting the previous one, the message disappear and then I click the submit button and the message appears again and doensnt let me submit even though the email is now different.
If you refresh the page do you still get the same message? This may be an issue with your browser rather than the program. You may also want to look at your output in the terminal and the browser to get more information about why this is occurring. Feel free to send it to me as well :)
How do I get the app.models and Doctor?
You might want to look at a previous videos (particularly the one on SQLAlachemy) as that wasn't really the focus of this video.