Skip to content

Instantly share code, notes, and snippets.

View erikhenrique's full-sized avatar

Erik Henrique erikhenrique

View GitHub Profile
@akhenakh
akhenakh / tools.py
Created June 19, 2012 14:47
flask jsonify with support for MongoDB from tools import jsonify
try:
import simplejson as json
except ImportError:
try:
import json
except ImportError:
raise ImportError
import datetime
from bson.objectid import ObjectId
from werkzeug import Response