after adding print(data) to my code, when I click submit on login i am getting this error :
OSError: [Errno 22] Invalid argument
I tried to print('anything'), but still the error is comming. I got no clue what to do. Please help.
def login():
if request.method == 'POST':
data = request.form
print(data)
return render_template('login.html', boolean=False)
Hello,
after adding print(data) to my code, when I click submit on login i am getting this error : OSError: [Errno 22] Invalid argument I tried to print('anything'), but still the error is comming. I got no clue what to do. Please help.
def login(): if request.method == 'POST': data = request.form print(data) return render_template('login.html', boolean=False)
You can see how Tim is doing it at 59:00 to 60:00. It is working perfect in the tutorial. Link below. https://www.youtube.com/watch?v=dam0GPOAvVI