[Python] what should i use instead of @app.before_first_request [duplicate]

Discussão em 'Python' iniciado por Stack, Julho 4, 2025.

  1. Stack

    Stack Membro Participativo

    I want to connect to the database in Flask before the first request the user makes. But the latest version of Flask that I use has removed @app.before_first_request And I want to know what to use instead? I've seen a lot of people saying to use @app.before_request, but it seems like this is executed before every user request.

    Continue reading...

Compartilhe esta Página