'Flask' object has no attribute 'before_first_request'

I am trying to deploy a small Dash app. This is my first time ever deploying something. I am getting the AttributeError mentioned above but I am clueless as to how to resolve that. I basically followed the instructions from Dashtools and now I’m stuck. Here’s my app: GitHub - vasilmanev/DepInspector2.0
Thanks in advance to anyone who might respond!

Hey,

You’re using the latest version of Flask, which is 2.3.3. Flask has deprecated ‘before_first_request’ since 2.2.x. Either downgrade to Flask below 2.2 or follow an alternative route like https://stackoverflow.com/questions/73570041/flask-deprecated-before-first-request-how-to-update

Jérémy.
Render Support, UTC+3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.