Django + Postgressql - Mailing list pgsql-novice

From Robert Dean
Subject Django + Postgressql
Date
Msg-id COL110-W40BF6E72ACB6AA4AACB8EF9A8A0@phx.gbl
Whole thread Raw
Responses Re: Django + Postgressql  ("SUNDAY A. OLUTAYO" <olutayo@sadeeb.com>)
Re: Django + Postgressql  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Hi,
 
 
I seem to be having problems configuring Postgres with Django and was wondering if someone could help me as I cant find any tutorials that fit my problem.
 
First, I seem to be having issues with my postgres permissions/or understand them.
 
Trying to connect to a database in root I get "psql: FATAL:  role "root" does not exist"
 
Also after trying this I get:
postgres@myvps:/root$ psql -d template1 -c "ALTER USER postgres WITH PASSWORD 'mypassword';"
could not change directory to "/root"
ALTER ROLE
postgres@myvps:/root$ createdb mytestdb
could not change directory to "/root"
createdb: database creation failed: ERROR:  source database "template1" is being accessed by other users
DETAIL:  There are 1 other session(s) using the database.
 
Can someone help me figure this out? Why can it not change directory to root and why is template1 being accesed by another user?
 
Thanks in advance
 
Rob

pgsql-novice by date:

Previous
From: "Carel Combrink"
Date:
Subject: Function Returning Table/Record
Next
From: "Carel Combrink"
Date:
Subject: Reduce Calculations in SELECT