Changing in the ```pg_hba.conf``` the _local_ line from ```peer``` to ```md5``` it works but it can't be done manually. We need to force the ```python manage.py``` to use ```127.0.0.1``` instead of ```localhost``` or we need to change the ```pg_hba.conf``` during the deployment.