Re: python: server is not receiving input from client flask

2021-06-29 Thread Chris Angelico
On Wed, Jun 30, 2021 at 6:21 AM Jerry Thefilmmaker wrote: > @app.route("/check_answer/", methods = ['POST']) > def check_answer(ans): > > > Enter your answer: > > What you're creating here is a route with a placeholder. The check_answer

Re: python: server is not receiving input from client flask

2021-06-29 Thread Jerry Thefilmmaker
On Tuesday, June 29, 2021 at 2:03:58 PM UTC-4, Chris Angelico wrote: > On Wed, Jun 30, 2021 at 3:38 AM Jerry Thefilmmaker > wrote: > > Thanks for taking the time to explained, Chris. Believe me, it helps. It > > had me thinking for a while. So, All the stuff about HTTP makes sense. I've > > be

Re: python: server is not receiving input from client flask

2021-06-29 Thread Chris Angelico
On Wed, Jun 30, 2021 at 3:38 AM Jerry Thefilmmaker wrote: > Thanks for taking the time to explained, Chris. Believe me, it helps. It had > me thinking for a while. So, All the stuff about HTTP makes sense. I've been > studying and trying to wrap my head around the rest of your explanation and

Re: python: server is not receiving input from client flask

2021-06-29 Thread Jerry Thefilmmaker
On Monday, June 28, 2021 at 3:59:54 PM UTC-4, Chris Angelico wrote: > On Tue, Jun 29, 2021 at 5:43 AM Jerry Thefilmmaker > wrote: > > > > Do you mind elaborating a bit more on making one function for any given > > request? > > > > As far as defining a bunch of functions that get called when

Re: python: server is not receiving input from client flask

2021-06-28 Thread Chris Angelico
On Tue, Jun 29, 2021 at 5:43 AM Jerry Thefilmmaker wrote: > > Do you mind elaborating a bit more on making one function for any given > request? > > As far as defining a bunch of functions that get called when particular > requests come in I thought that's what I had going on in my codes. No? >

Re: python: server is not receiving input from client flask

2021-06-28 Thread Jerry Thefilmmaker
On Monday, June 28, 2021 at 2:41:23 PM UTC-4, Chris Angelico wrote: > On Tue, Jun 29, 2021 at 4:36 AM Jerry Thefilmmaker > wrote: > > @app.route("/", methods = ['POST', 'GET']) > > def play(): > > > > @app.route("/", methods = ['POST', 'GET']) > > def check_answer(ans, user): > When you're bu

Re: python: server is not receiving input from client flask

2021-06-28 Thread Chris Angelico
On Tue, Jun 29, 2021 at 4:36 AM Jerry Thefilmmaker wrote: > @app.route("/", methods = ['POST', 'GET']) > def play(): > > @app.route("/", methods = ['POST', 'GET']) > def check_answer(ans, user): When you're building a Flask app, you're defining a bunch of functions that get called when particular

python: server is not receiving input from client flask

2021-06-28 Thread Jerry Thefilmmaker
I am new at python but newer at flask, and I'm trying to deploy a web app where I: 1. Send the user the question 2. Get the answer from the user 3. Send additional information based on the answer I am able to send the question but stuck at getting the answer from the user. Base on the answer fro