This sounds more like a Postgresql settings problem than a Django/Python specific problem.
I'd suggest taking a look at your pg_hba.conf file. It can be finicky, so you probably want to reference this if you haven't already: http://www.postgresql.org/docs/8.4/static/auth-pg-hba-conf.html -Jamie -----Original Message----- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of armandoperico Sent: Friday, December 17, 2010 2:03 PM To: Django users Subject: Django vs Postgres Connection Hi, this is the first time i try to deploy a django project and i'm not being able to solve a problem. On my local machine everything is running fine, but when i try to deploy to a running server with apache (mod_wsgi), i'm getting the following error (database related): Caught OperationalError while rendering: could not connect to server: Permission denied Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432? The fact is that when i try to connect to the database using psql - U... is working fine, so postgree is working ok, it seems to be with django :S Exception Location: /usr/lib/python2.6/site-packages/django/db/ backends/postgresql_psycopg2/base.py in _cursor, line 136 this is my django version (just in case): 1.2.3 Anyone here has faced this problem ? have any ideas? Thanks -- 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. -- 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.