Hello, thanks for your help.
I can login using psql, and see all the databases and users.
Altho, I couldn't log in as ocdnet_admin .  It said I didn't have
ocdnet_admin database.  I created ocdnet_admin database and now i can
log in
as that user.  manage.py syncd db still does not work tho.  I guess
something is wrong with postgres config.

On Sep 18, 9:34 am, Sérgio Durand <[EMAIL PROTECTED]> wrote:
> hi,
>
> try to connect with postgres using psql utility:
>
> psql -h localhost -U <your_username> -W
>
> if you don't have success login, the problem could be on postgres config.
>
> []'s
> Sergio Durand
>
> airjaw escreveu:
>
> > Hi, I'm having a bit of trouble getting past the "manage.py syncdb"
> > command.  I am trying to setup :
> > Postgresql 8.3
> > Django 1.0
> > psycopg2
>
> > The error I get when I run syncdb is:
> > psycopg2.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″?
>
> > Everything is correct in my settings.py file.  When I try manage.py
> > dbshell and enter the same user (ocdnet_admin) and pass, I can connect
> > to that db (ocdnet_db).
>
> > I have restarted postgresql server numerous times.
> > I'm thinking it might be my pg_hba.conf settings, which look like this
> > (at the bottom)
>
> > local    all         postgres                      ident sameuser
> > local    ocdnet_db   ocdnet_admin             md5
> > # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
> > # "local" is for Unix domain socket connections only
> > #local   all         all                               ident sameuser
> > # IPv4 local connections:
> > host    all         all         127.0.0.1/32          md5
> > # IPv6 local connections:
> > host    all         all         ::1/128               md5
>
> > Can anyone help me with this?  Thank you.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to