dcrosta/flask-pymongo — Issue #10: Add an initialization callback
Author: dcrosta
Created: 2011-12-30 19:58:41+00:00
State: open
Labels: TODO

For setting up indexes, etc:

@mongo.initialize
def create_indexes():
mongo.db.foo.ensure_index('bar')