Jun-09-2020, 06:32 AM
Make sure that what you get from
request.form.get('username')
is indeed the user input. You were printing username and password. What you get printed? That will show that the problem is in the DB part. Given it insert NULL, I guess for whatever reason request.form.get('username')
might be returning None, in which case it's not DB related issue at all
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs