best way to setup postgres as backend for webapp? - Mailing list pgsql-novice

From Matthew Wilson
Subject best way to setup postgres as backend for webapp?
Date
Msg-id slrnbrl0s0.mhl.mwilson@overlook.homelinux.net
Whole thread Raw
List pgsql-novice
I want to use postgres as the back-end for a web application.  Postgres
is installed and running on a Red Hat 9 server.  I'll use python to
handle the connection.  What is the best (easiest + safest) way to set
up postgres as the backend?

Should I create a user called 'mywebapp' and then use that user in all
my python scripts?  And should I make a database that is owned by user
'mywebapp'?

Also, although I use the -P flag with createuser, I still am not getting
prompted for a password.  Do I need to change my pg_hba.conf file to
something like:

local   all all ident   md5

Thanks for the help.

pgsql-novice by date:

Previous
From: "Miia Leino"
Date:
Subject: SQL statement is too long
Next
From: John Tankersley
Date:
Subject: Server for Home Use