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:
> 
> pg_config=/usr/local/pgsql/bin/pg_config
> library_dirs=/usr/local/pgsql/lib
> 
> However, as I want to separate the Web server and the Database  
> server, and the above file and directory are on another machine (say  
> 192.168.344.222), what should I enter in these fields?

I don't really understand what you're trying to do with setup.cfg (what
package is this setup file for?), but to answer your original question,
the psycopg module lives on the database client side -- so on the web
server in this case. It is loaded and used by the webserver code to act
as a client to talk to a remote database server. Basically psycopg2 is
the python equivalent of the psql program.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to