On 12/17/2010 03:49 PM, armandoperico wrote:
on settings.py..
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add
'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'dbname', # Or path to database
file if using sqlite3.
'USER': 'myuser', # Not used with
sqlite3.
'PASSWORD': 'mypass', # Not used with
sqlite3.
'HOST': '127.0.0.1', # Set to empty
string for localhost. Not used with sqlite3.
'PORT': '5432', # Set to empty string for
default. Not used with sqlite3.
}
}
Either get rid of the 127.0.0.1 and 5432 as per the comments in the code
above or change listen_address="*" in postgresql.conf and restart PG.
The former will make a socket connection. You're trying to make a TCP/IP
connection to PostgreSQL as you have it above now and PG is configured
by default to only listen to localhost, not an IP address, even if that
IP address is 127.0.0.1. You'll most likely find
listen_address="localhost" on your machine right now.
--
Regards,
Clifford Ilkay
Dinamis
1419-3266 Yonge St.
Toronto, ON
Canada M4N 3P6
<http://dinamis.com>
+1 416-410-3326
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@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.