Created
May 18, 2012 11:00
-
-
Save rozza/2724682 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from flask.ext.mongoengine import MongoEngine | |
app = Flask(__name__) | |
app.config.from_pyfile('the-config.cfg') | |
db = MongoEngine(app) # Pass the app | |
db.init_app(app) # Initiate the app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment