Thursday, September 15, 2011

Cannot Connect to Server with Postgresql (9.0)

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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate