Problem description:
I was using the new Python template, and when I went to my Flask website, it didn’t load. Another thing I noticed was that the console was acting like a Python shell.
Expected behavior:
Flask app will load
Actual behavior:
Flask app doesn’t load
Steps to reproduce:
Make a Python repl (in the new template)
make a Flask app
go in my website
Bug appears at this link:
https://firecdn.snakeyking.repl.co/
Browser/OS/Device:
Edge/Windows/Computer
app.run(host='0.0.0.0', port=8080, debug=True)
I believe therein lies your issue, try removing debug=True
from that:
app.run(host='0.0.0.0', port=8080)
5 Likes
I just realized it’s the same thing for the old template.
What if I want to destroy the bugs?
I usually just debug as I go. I’ve never run Flask in debug mode, nor Node if it even has one.
2 Likes
system
Closed
July 28, 2023, 1:46am
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.