Complete the code to import the Flask class correctly.
from flask import [1] app = [1](__name__)
The Flask class is imported from the flask module to create the app instance.
Complete the code to push the application context manually.
with app.[1](): # code that needs app context pass
The app_context() method pushes the application context so you can access app-specific variables.
Fix the error in accessing the current app inside a function.
from flask import [1] def get_name(): return [1].name
The current_app proxy gives access to the app instance within the application context.
Fill both blanks to create and push an application context manually.
ctx = app.[1]() ctx.[2]() # push context
You create the context with app_context() and push it with push().
Fill all three blanks to access the app config inside an application context.
from flask import [1] with app.[2](): secret = [3].config['SECRET_KEY']
You import current_app to access the app inside the context created by app_context().
