Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document.query is None when initializing the app on init_app method #8

Closed
fsouza opened this issue Apr 12, 2011 · 1 comment
Closed
Labels
Milestone

Comments

@fsouza
Copy link
Contributor

fsouza commented Apr 12, 2011

Here is an example:

db = MongoAlchemy()

def init_app():
    app = Flask(__name__)
    db.init_app(app)
    return app

In this case, db.Document.query is None.

@fsouza fsouza closed this as completed Apr 12, 2011
@holms
Copy link

holms commented Apr 30, 2014

and how this been fixed? where's commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants