Skip to content

Commit 32b1995

Browse files
committed
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 (MongoEngine/flask-mongoengine@352670e). While there is a fallback, I suspect it may be broken, and the new way is just better.
1 parent 6e9fa54 commit 32b1995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/tutorial/write-a-tumblelog-application-with-flask-mongoengine.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Install the Flask_ extension and add the configuration. Update
160160
from flask.ext.mongoengine import MongoEngine
161161

162162
app = Flask(__name__)
163-
app.config["MONGODB_DB"] = "my_tumble_log"
163+
app.config["MONGODB_SETTINGS"] = {'DB': "my_tumble_log"}
164164
app.config["SECRET_KEY"] = "KeepThisS3cr3t"
165165

166166
db = MongoEngine(app)

0 commit comments

Comments
 (0)