Re: Psychopg 2 Install

2007-04-18 Thread Brian Luft
>I'm asking what do I place into the pg_config and library_dirs in order for >the installation to work on the client web server? Or what do I in general to >make it work? I don't know what you mean by "place into". Make sure you read the INSTALL and README files carefully that came with your p

Re: Psychopg 2 Install

2007-04-17 Thread [EMAIL PROTECTED]
I think I've solved it! Realised you need to install libpq-fe.h before you can install psycopg. Which under Debian is simply installed with: apt-get install libpq-dev Thanks mark "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > I'm just trying to install Psycopg2 on the client (webs

Re: Psychopg 2 Install

2007-04-17 Thread [EMAIL PROTECTED]
I'm just trying to install Psycopg2 on the client (webserver) which is connected via ethernet to the Database server. But to do so I thought I had to update the pg_config and library_dirs in the psychpg2 file: setup.cfg, otherwise I get the following if I do nothing to it: running buildcd inst

Re: Psychopg 2 Install

2007-04-17 Thread Malcolm Tredinnick
On Wed, 2007-04-18 at 13:49 +1000, Mark Jarecki wrote: > To further illustrate my question. > > When installing Psychopg2, if the Database server was on the same > machine as the Web server, I would normally update the setup.cfg > prior to running "python setup.py build", with the following:

Re: Psychopg 2 Install

2007-04-17 Thread Mark Jarecki
To further illustrate my question. When installing Psychopg2, if the Database server was on the same machine as the Web server, I would normally update the setup.cfg prior to running "python setup.py build", with the following: pg_config=/usr/local/pgsql/bin/pg_config library_dirs=/usr/local

Re: Psychopg 2 Install

2007-04-17 Thread Mark Jarecki
Hi Brian I've actually got django up a running nicely on a single web/database server under mod_python and Postgres and have been working with that for about 6 months. All is fine on that front and now I want to test the apps scalabilty amongst other things and therefore want to set-up a

Re: Psychopg 2 Install

2007-04-17 Thread Brian Luft
Hi Mark, In direct answer to your question, psycopg provides a database driver for Postgres and is meant to be used by clients of the database - in your case this would be the web server. As far as your question about configuring everything, that leads me to believe that you are fairly new to ei

Re: Psychopg 2 Install

2007-04-17 Thread Mark Jarecki
Realised that Psycopg sits on the database server and you refer to it through the settings.py file. Should get more sleep On 18/04/2007, at 11:23 AM, Mark Jarecki wrote: Hi I'm trying to set-up a django system comprising a separate web server, static server and database server. Where does

Psychopg 2 Install

2007-04-17 Thread Mark Jarecki
Hi I'm trying to set-up a django system comprising a separate web server, static server and database server. Where does Psychopg live: on the web or database server? And how would I go about configuring the two? Cheers Mark --~--~-~--~~~---~--~~ You received