What is it?
my web.py:
from flask import Flask, render_template
from flask.ext.pymongo import PyMongo
app = Flask(__name__)
mongo = PyMongo(app)
@app.route("/")
def home_page():
name = mongo.db.megoloman_db.myCollections.find()
return render_template('cities.html', name = name)
if __name__ == "__main__":
app.run(debug=True)
my html:
<!doctype html>
<title>Hello from Flask</title>
<h1>{{ name }}</h1>
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/BSnrOR6n0c4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/71191e89-056f-47b7-a55d-de665fd0210e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/BSnrOR6n0c4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/727f4839-10ec-48dd-8c66-b2abcc8af809%40googlegroups.com.
ObjectId.
How can I do this?Hello! Please help me