Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
This class is used to integrate `MongoKit`_ into a Flask application.

:param app: The Flask application will be bound to this MongoKit instance.
            If an app is not provided at initialization time than it
            must be provided later by calling :meth:`init_app` manually.

.. _MongoKit: http://namlook.github.com/mongokit/

src/f/l/flask-mongokit-HEAD/example/todo.py   flask-mongokit(Download)
from datetime import datetime
 
from flask import Flask, request, render_template, redirect, url_for
from flask.ext.mongokit import MongoKit, Document
 
    use_dot_notation = True
 
db = MongoKit(app)
db.register([Task])