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.
> 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, Michael||Date: 2011-10-21 18:12:40|
|Subject: Re: Specifying Host With psycopg2|
|Previous:||From: Aaron Burt||Date: 2011-10-20 19:56:58|
|Subject: Re: CASE eval issue|