Commit b415c1131c6cd5ed0d3cab16bd8741a039be3e1c

  • avatar
  • arvind
  • Fri Apr 13 12:50:37 IST 2012
Removing commented regions, which used to make filter by blog fail.
  
1616app = Flask(__name__)
1717@app.before_request
1818def first():
19 #return "<h1>Hello</h1>";
20 #g.connection = pymongo.Connection('localhost',27017) #Create the object once and use it.
21 #g.db = g.connection['dev_alipi']
22 pass
19 g.connection = pymongo.Connection('localhost',27017) #Create the object once and use it.
20 g.db = g.connection['dev_alipi']
2321@app.teardown_request
2422def close(exception):
25 #g.connection.disconnect()
26 pass
23 g.connection.disconnect()
2724@app.route('/')
2825def start_page() :
2926 d = {}