Hello, Eric

Welcome to Django!

* Can you ping the server?

* Are you sure about your username and password? Try creating a new login
role through PgAdmin and use that instead to see if the error is in the
connection or in the authentication process.

* Does your pg_hba.conf file have an entry which matches the IP from which
you are accessing the database? (check towards the very end) -- this
shouldn't raise an error on localhost connections, but you never know

Try #django and #postgres on irc.freenode.org for help too!


Cheers,
AT


On Thu, Sep 15, 2011 at 3:37 PM, ericdoesdjango <ehulb...@gmail.com> wrote:

> Windows (vista)
>
> I did the djangoproject tutorial and I am now going through
> djangobook.  The first time (going through the djangoproject
> tutorial), after creating tables, I tried to enter values in the table
> through the django models.  This was a couple of weeks ago and I
> forgot what error it returned.  I then switched into my postgres shell
> and entered the first data entry manually.  It worked and I was able
> to enter subsequent data through the Django framework, so I didn't
> think much of it.
>
> More recently (going through the djangobook example), I have set up a
> database connection and created my first tables.  Again I tried to
> enter the first table values through Django's models framework.  This
> time I received the error:
>
> 'could not connect to the server: connection refused (0x0000274D/
> 10061)
> is the server running on host ??? and accepting TCP/IP connections on
> port 5432?'
>
> At first I thought this may have been a problem with my host info in
> the settings.py file.  However, I now receive this same message when I
> try to login to postgres from the windows command line (except '???'
> is replaced with 'localhost').
>
> I've never had this problem before when using postgres.
> 1.  How might have Django caused this problem?
> 2.  How can I fix it?  I'm new to Postgresql as well, so I have been
> having difficulty finding out how to fix it on their end.
>
> --
> 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.
>
>

-- 
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