jazzband / dj-database-url

Use Database URLs in your Django Application.
https://pypi.org/project/dj-database-url/
BSD 3-Clause "New" or "Revised" License
1.48k stars 205 forks source link

Password with special character '#' not parsing correctly #224

Closed MattijsLootensRenson closed 1 year ago

MattijsLootensRenson commented 1 year ago

Given a connection string: connstr="postgres://user:pass#word@server.host.com/pgsqldb" Parsing the given string with dj_database_url.parse(connstr) raises the following ValueError ValueError: Port could not be cast to integer value as 'pass' I'm guessing it just cuts the connection string starting at the '#'.

estahn commented 1 year ago

@MattijsLootensRenson Just stumbled across this myself. The README states: image

MattijsLootensRenson commented 1 year ago

Must have overlooked that, thank you for the info!