From 32b1995f9e3e3587442e1dcfb72dd3ec94f5cbf6 Mon Sep 17 00:00:00 2001 From: daemonburrito Date: Sun, 27 Jan 2013 19:07:35 -0600 Subject: [PATCH] Update source/tutorial/write-a-tumblelog-application-with-flask-mongoengine.txt Updated app.config to reflect changes in flask-mongoengine; it now expects a "MONGODB_SETTINGS" dict (https://github.com/MongoEngine/flask-mongoengine/commit/352670e2ec80a2c2846a757214a0c3dfe0fa6eb4). While there is a fallback, I suspect it may be broken, and the new way is just better. --- .../write-a-tumblelog-application-with-flask-mongoengine.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tutorial/write-a-tumblelog-application-with-flask-mongoengine.txt b/source/tutorial/write-a-tumblelog-application-with-flask-mongoengine.txt index 003d2c491e9..fefd7a983c5 100644 --- a/source/tutorial/write-a-tumblelog-application-with-flask-mongoengine.txt +++ b/source/tutorial/write-a-tumblelog-application-with-flask-mongoengine.txt @@ -160,7 +160,7 @@ Install the Flask_ extension and add the configuration. Update from flask.ext.mongoengine import MongoEngine app = Flask(__name__) - app.config["MONGODB_DB"] = "my_tumble_log" + app.config["MONGODB_SETTINGS"] = {'DB': "my_tumble_log"} app.config["SECRET_KEY"] = "KeepThisS3cr3t" db = MongoEngine(app)