[Answer]-Django on vagrant, psycopg2 OperationalError: could not connect to server: No such file or directory

1👍

You didn’t quite install postgres – you just installed psycopg2, which is a python client for postgres. You’ll need to install and run postgres like so:

apt-get install postgresql
/etc/init.d/postgresql start

(You will probably also need to log into it and create yourself a database for your project to talk to)

Leave a comment