You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.rst
+4-4
Original file line number
Diff line number
Diff line change
@@ -44,10 +44,10 @@ Or, if you are setting up your database before your app is initialized, as is th
44
44
db.init_app(app)
45
45
46
46
47
-
By default, Flask-MongoEngine assumes that the :program:`mongod` instance is running
47
+
By default, Flask-MongoEngine assumes that the `mongod` instance is running
48
48
on **localhost** on port **27017**, and you wish to connect to the database named **test**.
49
49
50
-
If MongoDB is running elsewhere, you should provide the :attr:`host` and :attr:`port` settings
50
+
If MongoDB is running elsewhere, you should provide the `host` and `port` settings
51
51
in the `'MONGODB_SETTINGS'` dictionary wih `app.config`.::
52
52
53
53
app.config['MONGODB_SETTINGS'] = {
@@ -56,7 +56,7 @@ in the `'MONGODB_SETTINGS'` dictionary wih `app.config`.::
56
56
'port': 12345
57
57
}
58
58
59
-
If the database requires authentication, the :attr:`username` and :attr:`password`
59
+
If the database requires authentication, the `username` and `password`
60
60
arguments should be provided `'MONGODB_SETTINGS'` dictionary wih `app.config`.::
61
61
62
62
app.config['MONGODB_SETTINGS'] = {
@@ -65,7 +65,7 @@ arguments should be provided `'MONGODB_SETTINGS'` dictionary wih `app.config`.::
65
65
'password':'pwd123'
66
66
}
67
67
68
-
Uri style connections are also supported, just supply the uri as the :attr:`host`
68
+
Uri style connections are also supported, just supply the uri as the `host`
69
69
in the `'MONGODB_SETTINGS'` dictionary with `app.config`. **Note that database name from uri has priority over name.** If uri presents and doesn't contain database name db setting entirely ignore and db name set to 'test'. ::
0 commit comments