Forum

You are not logged in.

#1 17-10-2017 03:34:33

Volto
Membre
Registered: 17-10-2017
Posts: 2

Django and PostgreSQL database

Hello there,

I'm deploying my new Django app and when it come to the database I keep getting this error:

"could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?"

My database is created in the admin panel.
All of my settings seems good.

Can someone help ? smile

Thank you in advance !

Volto

Offline

#2 17-10-2017 11:22:40

@Héloïse
Staff
Registered: 03-03-2016
Posts: 218

Re: Django and PostgreSQL database

Hello,

This error indicates that your website does not find your database. Did you verified database login information entered in the configuration file of your site?

If the database is on our server, all needed information are indicated on the Databases menu.

Offline

#3 17-10-2017 20:31:31

Volto
Membre
Registered: 17-10-2017
Posts: 2

Re: Django and PostgreSQL database

I verified.
Everything's good.
Atleast, in my mind.

Any other tips ? hmm

Thank you

Offline

#4 19-10-2017 15:32:09

@Cyril
Staff
From: Paris
Registered: 06-02-2007
Posts: 5,587
Website

Re: Django and PostgreSQL database

The error message is very clear: your application tries to connect to a local PostgreSQL rather than the host address that you're supposed to use.

Offline

Board footer

Powered by FluxBB