Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting App to Run
#5
(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.
[Image: pCZ5Qw.png]
Reply


Messages In This Thread
Getting App to Run - by Zachary1234 - Jun-21-2023, 05:47 AM
RE: Getting App to Run - by snippsat - Jun-21-2023, 10:54 AM
RE: Getting App to Run - by Zachary1234 - Jun-22-2023, 01:10 AM
RE: Getting App to Run - by Zachary1234 - Jun-22-2023, 01:11 AM
RE: Getting App to Run - by snippsat - Jun-22-2023, 10:28 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020