Django 1.5 : OperationalError in windows when running "python manage.py syncdb" using postgresql-psycopg2 -


this settings.py file in django project. os : windows, hosting : localhost

databases = {     'default': {         'engine': 'django.db.backends.postgresql_psycopg2',         'name': 'postgres',                              'user': 'jess',         'password': 'dreamhost',         'host': 'localhost',                              'port': '5432',                          } } 

i followed instructions blog in installing postgresql , psycopg2

http://shivul.wordpress.com/2010/05/07/installing-django-with-postgresql-on-windows-and-ubuntu/

and when running python manage.py syncdb following error:

operationalerror: not connect server: connection refused (0x0000274d/10061) server running on host "localhost" (::1) , accepting tcp/ip connections on port 5432  not connect server: connection refused (0x0000274d/10061)     server running on host "localhost" (127.0.0.1)  , accepting     tcp/ip connections on port 5432 

i tried edit settings through pgadmin3 application in postgresql installation files, throws same error

could not connect server: connection refused (0x0000274d/10061) server running on host "localhost" (::1) , accepting tcp/ip connections on port 5432  not connect server: connection refused (0x0000274d/10061)     server running on host "localhost" (127.0.0.1)  , accepting     tcp/ip connections on port 5432 

i looked through similar questions in stackoverflow , internet, outdated or not working.

your server listening on ipv4, localhost resolving both ipv4 , ipv6 address on host.

use 127.0.0.1 instead of localhost force ipv4 connection, or edit postgresql.conf tell postgresql listen on ipv6 too. show listen_addresses line of postgresql.conf advice on that, along output of select version().


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -