Mercurial > p > roundup > code
view doc/postgresql.txt @ 1902:7b0a655edb88
Don't let roundup_server.run() interpret the command-line arguments...
...it causes an error when doing 'demo.py nuke'.
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Thu, 06 Nov 2003 14:24:57 +0000 |
| parents | 3ffb7b56172a |
| children | f255363e6d97 |
line wrap: on
line source
========================== PostgreSQL/psycopg Backend ========================== This is notes about PostreSQL backend based on the psycopg adapter for roundup issue tracker. Prerequisites ============= To use PostgreSQL as backend for storing roundup data, you should additionally install: 1. PostgreSQL 7.x - http://www.postgresql.org/ 2. The psycopg python interface to PostgreSQL: http://initd.org/software/initd/psycopg Additional configuration ======================== To initialise and use PostgreSQL database roundup's configuration file (config.py in the tracker's home directory) should be appended with the following constants (substituting real values, obviously):: POSTGRESQL_DBHOST = 'localhost' POSTGRESQL_DBUSER = 'roundup' POSTGRESQL_DBPASSWORD = 'roundup' POSTGRESQL_DBNAME = 'roundup' POSTGRESQL_PORT = 5432 POSTGRESQL_DATABASE = { 'host': MYSQL_DBHOST, 'port': POSTGRESQL_PORT, 'user': MYSQL_DBUSER, 'password': MYSQL_DBPASSWORD, 'database': MYSQL_DBNAME } Also note that you can leave some values out of ``POSTGRESQL_DATABASE``: 'host' and 'port' are not necessary when connecting to a local database and 'password' is optional if postgres trusts local connections. The user specified in ``POSTGRESQL_DBUSER`` must have rights to create a new database and to connect to the "template1" database, used while initializing roundup. Have fun with psycopg, Federico Di Gregorio <fog@initd.org>
