pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: D'Arcy J.M. Cain <darcy@PyGreSQL.org>
To: Alastair G. Hogge <agh@tpg.com.au>
To: pgsql-interfaces@postgresql.org
Subject: Re: Seeking PyGreSQL help
Date: Tue, 5 Aug 2003 08:42:32 -0400
Message-ID: <200308050842.32937.darcy@PyGreSQL.org> (raw)
In-Reply-To: <200308052009.47746.agh@tpg.com.au>
References: <200308051816.06256.agh@tpg.com.au>
	<200308050510.39725.darcy@PyGreSQL.org>
	<200308052009.47746.agh@tpg.com.au>

On Tuesday 05 August 2003 06:09, Alastair G. Hogge wrote:
> Thanks for help. The problem was in pgsql/data/postgresql.conf. I needed to
> change "#tcpip_socket = false" to "tcpip_socket = true"
> I know am able to access my database from within Python, hwover when I try
> the python an cgi script I get an internet server error. Is there more
> options I should know about?

I assume that you mean "Internal Server Error" or ISE.  Whenever your web 
server gives an ISE there is something in the error log that tells you what 
the problem is.  With Python you will get the exact line with the problem.  
From there it is simpy a matter of debugging your code.

If you can't get access to the error logs for whatever reason you can add the 
following line to your Python script to see the error in your browser.

import sys
sys.stderr = sys.stdout

You may have to view the source to see the error properly as your browser will 
try to "format" it for you.

-- 
D'Arcy J.M. Cain
PyGreSQL Development Group
http://www.PyGreSQL.org



view thread (9+ messages)  latest in thread

Message-ID: <200308050842.32937.darcy@PyGreSQL.org>
Permalink:  ../200308050842.32937.darcy@PyGreSQL.org/
Also on:    postgresql.org/message-id/200308050842.32937.darcy@PyGreSQL.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: darcy@PyGreSQL.org, agh@tpg.com.au
  Subject: Re: Seeking PyGreSQL help
  In-Reply-To: <200308050842.32937.darcy@PyGreSQL.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox