Use current_app in Flask_SQLite3 example #629

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants

The Flask_SQLite3 example used in the Flask Extension Development
documentation cannot use self.app if attached to the application with
init_app. This is fixed by using flask.current_app.

Probably needs some additional note in the text too.

@martijnvermaat martijnvermaat Use current_app in Flask_SQLite3 example
The Flask_SQLite3 example used in the Flask Extension Development
documentation cannot use self.app if attached to the application with
init_app. This is fixed by using flask.current_app.
96be2bf
Contributor

kennethreitz commented Nov 16, 2012

mitsuhiko closed this Jan 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment