Я решил вопрос следующим образом: 1. импортировав from bson.objectid import ObjectId
2. изменив маршрут на этот:
# Single Article
@app.route('/home/<string:id>/', methods=['GET','POST'])
def post(id):
# Create Mongo Connection
user = mongo.db.articles
# execute query
article = user.find_one({"_id": ObjectId(id)})
return render_template("post.html", article=article)
In IIS 7 when you install the ASP.NET modules, static content is not installed by default. You will need to go into programs and features, then "Turn windows features on or off".
Under IIS section, drill down into WWW services, Common Http features, and check "Static Content".
Without that css, images, html, and other non-dynamic content will not show up.
You can use some HTTP sniffing tool (Firebug or Fiddler) and check for failing requests. If you find such requests you can inspect the error message returned by the server.