Starter example results in 404 error
gwilku opened this issue · 4 comments
gwilku commented
The basic example from the readme / flask docs throws a 404 error instead of returning the Hello World message
If you run the code from the example:
# save this as app.py
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello, World!"
and then open 127.0.0.1:5000
Instead of getting the Hello World message, you get a 404.
When re-trying the app exits with code 0 instead of launching the server.
Environment:
- Python version: 3.12
- Flask version: 3.02
davidism commented
The next line down in the readme shows running flask run
to run the development server.
gwilku commented
I did run it,
I am not getting "unable to reach". I am getting 404 response from the
actual flask app
…On Fri, 8 Mar 2024 at 21:19, David Lord ***@***.***> wrote:
The next line down in the readme shows running flask run to run the
development server.
—
Reply to this email directly, view it on GitHub
<#5434 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUIXHOINNMZSZODJI3EPQTYXIMNFAVCNFSM6AAAAABENKIUZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWGM3DEMZVGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Grzegorz Wilczek
+48 607 79 79 17
davidism commented
I can't reproduce this issue with the information provided. The example works correctly when I run it.
gwilku commented
OK, I can't reproduce it now either. Seems to have been an issue with my
PyCharm and/or general Python configuration.
…On Fri, 8 Mar 2024 at 23:23, David Lord ***@***.***> wrote:
I can't reproduce this issue with the information provided. The example
works correctly when I run it.
—
Reply to this email directly, view it on GitHub
<#5434 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUIXHIMN44WQF3O7UGXFQ3YXI24ZAVCNFSM6AAAAABENKIUZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWGUYDOOJYHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Grzegorz Wilczek
+48 607 79 79 17