Skip to content

rugginoso/flask-pymongo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PyMongo support for Flask applications

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%