techwithtim / Flask-Web-App-Tutorial

Code for the note storing flask web app made during a YouTube video.
926 stars 1.02k forks source link

Sending data from form to python console #127

Closed Piotras1024 closed 1 year ago

Piotras1024 commented 1 year ago

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

Piotras1024 commented 1 year ago

After reset PC, it just start working properly like in tutorial :OO