Ask coding questions

← Back to all posts
Flask app won't run
h
ZoutigeWolf (2)

I want to run a flask app but when i start it and go to https://patsers-mommy.zoutigewolf.repl.co nothing happens.

The code is located at the bottom of main.py.

Answered by VulcanWM (2901) [earned 5 cycles]
View Answer
Comments
hotnewtop
VulcanWM (2901)

Try forking the repl and then doing it. It looks like you tried making charts with matpolib before and you cannot try making an app after doing that

ZoutigeWolf (2)

@VulcanWM Thx it worked in the fork. Is there a way to disable the matplotlib to get the preview of the site?

VulcanWM (2901)

I don’t know but you can try removing the package from the package manager @ZoutigeWolf

VulcanWM (2901)

oh damn, try adding it as feedback @ZoutigeWolf

Coder100 (18917)

please attach the repl.

ZoutigeWolf (2)

ohh nvm its because i deleted it and created a new one without matplotlib

xfinnbar (149)

Make sure to run the app setting the host to 0.0.0.0:
app.run("0.0.0.0")

Coder100 (18917)

are there any errors?

ZoutigeWolf (2)

@Coder100 and i can't see the preview because matplotlib is in the way