Jun-22-2023, 10:28 AM
(Jun-22-2023, 01:11 AM)Zachary1234 Wrote: How do I set up Flask on Windows 10 64 bit so that Python/Idle can access it?Not quite sure what you mean,any Ide/Editor can be used to show the code.
Should
always use command line when run the Flask code
,because of the the long running process that Ide/Editor can block.When i run code over i use cmder it's a much better cmd.
From
cmd
it would be the same way as shown.G:\div_code\hex>python db_flask.py * Serving Flask app 'db_flask' * Debug mode: off WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://127.0.0.1:5000 Press CTRL+C to quit 127.0.0.1 - - [22/Jun/2023 11:48:24] "GET / HTTP/1.1" 200 - 1 127.0.0.1 - - [22/Jun/2023 11:48:27] "GET /increment HTTP/1.1" 200 - 2 127.0.0.1 - - [22/Jun/2023 11:48:31] "GET /increment HTTP/1.1" 200 - 3 127.0.0.1 - - [22/Jun/2023 11:48:34] "GET /increment HTTP/1.1" 200 -I use VS Code when using Flask i never(Push run button) i always run it from command line.
It will work,but have have to redirect to use Terminal for output for that to work,default output Window will not show increment.