Django: ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
If you're using PostgreSQL on Windows, you may have a code page issue.
>psql -U postgres
psql (9.6)
WARNING: Console code page (850) differs from Windows code page (1252)
8-bit characters might not work correctly. See psql reference
page "Notes for Windows users" for details.
Type "help" for help.
postgres=#
Please try setting code page before launching Django.
> cmd.exe /c chcp 1252
You have set up a query and a db that are using the same language. However while the DB used a code page with 850 possible characters, your session had 1252 possible characters. When the two tries to communicate there are symbols that cannot match up between the query and the DB.
cmd.exe /c chcp 1252 -> sets the query language to 1252 possible characters == db(1252 possible characters), which resolves the issue.