We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 769fb6b commit 0b04dd3Copy full SHA for 0b04dd3
django_mongodb/base.py
@@ -159,7 +159,7 @@ def init_connection_state(self):
159
def get_connection_params(self):
160
settings_dict = {
161
"host": self.settings_dict["HOST"] or None,
162
- "port": int(self.settings_dict["PORT"] or None),
+ "port": int(self.settings_dict["PORT"] or 27017),
163
**self.settings_dict["OPTIONS"],
164
}
165
0 commit comments