Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PyMongo support for Flask applications
tag: 0.1.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
examples/wiki
flask_pymongo
test
.gitignore
.travis.yml
MANIFEST.in
README.md
setup.cfg
setup.py

README.md

Flask-PyMongo

PyMongo support for Flask applications

Quickstart

from flask import Flask
from flask.ext.pymongo import PyMongo

app = Flask(__name__)
mongo = PyMongo(app)

@app.route('/')
def home_page():
    online_users = mongo.db.users.find({'online': True})
    return render_template('index.html',
        online_users=online_users)

More Info

Something went wrong with that request. Please try again.