0

in run.py file I have

app = create_app()

@app.context_processor
def my_injector():
    gdata = Gdata(request.host_url)
    return dict(gdata=gdata,)

and in a routes.py file I have:

@articles.route('/article/<int:id>')
def view_article(id):
    current_app.gdata.title = "title here"

I don't know how to access the gdata object injected into the application context here in the view_article methode

Neo Mosaid
  • 325
  • 2
  • 17

0 Answers0