Python - How to import 'current_app' -- flask

Import current_app

To import current_app, Add the following line to the top of your code.

from flask import current_app

 

For more information about current_app:
flask current_app