Commit 0add93c3 authored by Vangelis Koukis's avatar Vangelis Koukis
Browse files

Add PostgreSQL-specific instructions to README

parent dea6c7be
......@@ -91,8 +91,22 @@ Install the postgres Python library
$ bin/pip install psycopg2
Configure a postgres db/account for synnefo
<TODO>
Become the postgres user, connect to PostgreSQL:
$ sudo su - postgres
$ psql
Run the following commands:
DROP DATABASE synnefo;
DROP USER username;
CREATE USER username WITH PASSWORD 'password';
CREATE DATABASE synnefo;
GRANT ALL PRIVILEGES ON DATABASE synnefo TO username;
ALTER DATABASE synnefo OWNER TO username;
ALTER USER username CREATEDB;
The last line enables the newly created user to create own databases. This is
needed for Django to create and drop the test_synnefo database for unit
testing.
4. At this point you should have a working DB. Now configure Django to access it:
Copy the default configuration file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment