I am on my final project and i have a simple flask app and and index html template. There are no errors in my app, however when i run flask, flask run
, it says Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
. But when i landed on that page, i get a:
This site can’t be reached
127.0.0.1 refused to connect.
then i went online and searched for a similar problem like the one here.
So i ran flask run --host=0.0.0.0 --port=8080
, and this time it said:
This page isn’t working
0c4c5d63-0061-4153-a69e-b033f15e1099-ide.cs50.xyz didn’t send any data.
I am able to access 127.0.0.1
through a different program like Sublime text 3, which i use for my flask development. But i am building an app with a database and i prefer using the CS50 IDE which i am familiar with. But i can't seem to get it running.
Any ideas?
0c4c5d63-0061-4153-a69e-b033f15e1099-ide.cs50.xyz
).flask run --host=0c4c5d63-0061-4153-a69e-b033f15e1099-ide.cs50.xyz --port=8080
or how would i implement what you said?flask
run in the "vanilla" ide, the environment and configuration will automagically run it on the "ide address". Is anything changed in app.py to redirect somehow? Is anything changed in environment, for instance to run Sublime?application.py
that i made last week and tried to run it. Same thing. All i'm doing in my current project is putting up the necessary parameters for flask and asking it torender_template
. It should be running onhttp://127.0.0.1:5000
but didn't work. I ran the same file in Sublime with the same host and port, and it worked fine. I don't think its my app or sublime, but it's the CS50 IDE instead. I checked their status page to see if everything is working well, and i noticed that they had a maintenance for the IDE the same day i got the error.