Fix Postgres config on runner
It would appear that changes to the Postgres service within GitLab runner now require a password to be set or for all hosts to be explicitly allowed (not recommended).
Summary changes include setting this password in both gitlab-ci.yaml and settings/test.py. Additional changes made due to over optimisation by PyCharm.
Squash merge suggested due to excessive number of commits required for CI testing.
Edited by Tom Mychost