Skip site navigation (1) Skip section navigation (2)

Re: Specifying Host With psycopg2

From: wes <pdxpug(at)the-wes(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pdxpug(at)postgresql(dot)org
Subject: Re: Specifying Host With psycopg2
Date: 2011-10-21 15:10:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pdxpug
Interesting that your email has a date of 7 days ago, but only showed up
now. Maybe you got moderated?

Since this can be different from user to user, you should take the easy way
out and make the hostname configurable by the end-user. Something like a
configuration file with hostname, username,  password, and perhaps database

If you hard-code any of these things, you are asking for trouble.


On Fri, Oct 14, 2011 at 8:43 AM, Rich Shepard <rshepard(at)appl-ecosys(dot)com>wrote:

>  I'm nut sure whether this is the appropriate list for my question; perhaps
> it belongs on the local python mail list. So, I'll ask:
>  To identify the postgres host when establishing a connection to the
> database, should I use 'localhost,' the server's host name, or a
> fully-qualified path/host name?
>  I'm asking because now I'll be developing and using this application here
> but eventually my client and a state regulatory agency will be using it on
> their Windows-based networks. My learning now just how to define the
> database host will make it easier for me when it comes time to provide the
> core python model to others.
> Rich
> --
> Sent via pdxpug mailing list (pdxpug(at)postgresql(dot)org)
> To make changes to your subscription:

In response to


pdxpug by date

Next:From: Ewan, MichaelDate: 2011-10-21 18:12:40
Subject: Re: Specifying Host With psycopg2
Previous:From: Aaron BurtDate: 2011-10-20 19:56:58
Subject: Re: CASE eval issue

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group