In addition i can connect database with pgAdmin III without any
error...

On Aug 23, 4:05 pm, SSozuer <selcuk.soz...@gmail.com> wrote:
> Hi guys,
> When i was checking the database connection,i am taking that error:
>
>  File "<console>", line 1, in <module>
>   File "/usr/local/lib/python2.7/dist-packages/django/db/backends/
> __init__.py", line 250, in cursor
>     cursor = self.make_debug_cursor(self._cursor())
>   File "/usr/local/lib/python2.7/dist-packages/django/db/backends/
> postgresql_psycopg2/base.py", line 140, in _cursor
>     self.connection = Database.connect(**conn_params)
> OperationalError: 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"?
>
> Here is my pg_hba.conf file  settings:
>
> # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
>
> # "local" is for Unix domain socket connections only
> local   all       postgres                             trust
> # IPv4 local connections:
> host    all       postgres        127.0.0.1/32          trust
> # IPv6 local connections:
> host    all         all         ::1/128               trust
>
> any help would be great, thanks
> Selcuk

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to