Check out once properly yor connection(Host, username,password,port)
in setting.py



On Apr 11, 6:08 pm, L Corbani <lec...@gmail.com> wrote:
> I am new to django, and am running the tutorial.  I have edited
> 'settings.py' and am running "python manage.py runserver".
>
> When I run the server and then call "python manage.py syncdb" against
> my Postgres database, everything just hangs.
>
> If I kill 'runserver', then I get this message from syncdb:
>
> site-packages/Django-1.3-py2.4.egg/django/db/backends/
> postgresql_psycopg2/base.py
> line 140
>
> self.connection = Database.connect(**conn_params)
> psycopg2.OperationalError: could not connect to server:  Connection
> refused
>
> When I turn the server back on and run syncdb, it just hangs.  I try
> turning on verbose and other options...but I see nothing.
>
> It seems like something is talking to the server, but that is as far
> as it goes.
>
> Any thoughts of what might be wrong?
>
> Thanks.
> Lori

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