File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 88
99
1010def create_postgres_uri (self ):
11- host = self .settings .get ("HOST" ) or "localhost"
12- dbname = self .settings .get ("NAME" ) or ""
11+ host = self .settings .get ("HOST" , "localhost" )
12+ dbname = self .settings .get ("NAME" , "" )
1313 user = quote (self .settings .get ("USER" ) or "" )
14- password = self .settings .get ("PASSWORD" ) or ""
14+ password = self .settings .get ("PASSWORD" , "" )
1515 password = f":{ quote (password )} " if password else ""
1616 if not user :
1717 password = ""
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Changelog
44Unreleased
55----------
66
7- * Nothing (yet)!
7+ * Empty string as HOST for postgres unix domain socket connection is now supported.
88
994.2.1 (2024-08-23)
1010----------
You can’t perform that action at this time.
0 commit comments