| | 102 | === Using Postgres Databases in Django 1.0 and Mac OSX Leopard === |
| | 103 | Writen by sedibr |
| | 104 | |
| | 105 | After install Django, install the bundle Postgres Plus, from http://www.enterprisedb.com/products/postgres_plus/download.do. |
| | 106 | The package provides Postgress Core installation plus a couple of very usefull GUI tools. |
| | 107 | |
| | 108 | As mentioned before, you should set some ''ENVIRONMENT'' variables. This is an example for PostgresPlus 8.3 package: |
| | 109 | Add {{{export PATH=/Library/PostgresPlus/8.3/bin:$PATH}}} and {{{export MANPATH=/Library/PostgresPlus/8.3/man:$MANPATH}}} to {{{~/.profile}}} |
| | 110 | Add {{{export PGDATA=/Library/PostgresPlus/8.3/data}}} to {{{~/.profile}}} |
| | 111 | |
| | 112 | Download and build ''psycopg'' as stated above. In your ''settings.py'' file choose ''postgresql_psycopg2'' adapter to your database. |