Ask coding questions

← Back to all posts
Some flask thing is not working, but i can't tell what.
isaiah08 (63)

This is my first time using the @app.before_request, so i'm guessing that's the thing that's wrong.

Comments
hotnewtop
RYANTADIPARTHI (6010)

Solution

your error is because on your app.run('0.0.0.0', debug=True), you have the app.route(). Remove that. and it will work. Also, you might want to change the run to this.

app.run(host='0.0.0.0', port='8080')
isaiah08 (63)

Never mind, i figured it out by myself. @RYANTADIPARTHI

isaiah08 (63)

I can't mark my own answer as correct. @RYANTADIPARTHI