Postgres database server

140 views
Skip to first unread message

sheyda kianimehr

unread,
Oct 11, 2014, 1:10:28 PM10/11/14
to django...@googlegroups.com
Hi guys I have a problem.
I am so new in Django and Postgres

I am installed python, django, postgres on Ubuntu (acording to https://docs.djangoproject.com/en/1.7/intro/tutorial01/)
but I have problem in seting up The development server,
I see password for postgres user error after typing this is my Terminal
python manage.py runserver

I put a password in setting.py file but it doesn't work yet.

Tom Lockhart

unread,
Oct 11, 2014, 1:33:03 PM10/11/14
to django...@googlegroups.com
Are you sure that you are accessing the database through django the way the database expects?

You should be able to access your database through the command line:

psql -U your_db_username dbname

Send your DATABASES variable from the settings file and we might have some more suggestions.

hth

- Tom

Collin Anderson

unread,
Oct 13, 2014, 9:36:40 AM10/13/14
to django...@googlegroups.com
Hi Sheyda,

What does the error message say?

Collin

sheyda kianimehr

unread,
Oct 13, 2014, 2:31:09 PM10/13/14
to django...@googlegroups.com
Yes, I did but when I want to run server python manage.py runserver
I got this message

django.db.utils.OperationalError: FATAL:  password authentication failed for user "postgres"
FATAL:  password authentication failed for user "postgres"

You think there is a problem with my DB?
I have made a new DataBase and I can access that at terminal.

sheyda kianimehr

unread,
Oct 13, 2014, 2:34:50 PM10/13/14
to django...@googlegroups.com
Hi Collin,
 I made a Database, I can see the tables of my DBs in terminal but when I use this python manage.py runserver
for connecting to server I got this error.


django.db.utils.OperationalError: FATAL:  password authentication failed for user "postgres"
FATAL:  password authentication failed for user "postgres"

Babatunde Akinyanmi

unread,
Oct 13, 2014, 3:55:25 PM10/13/14
to Django users

Hi Sheyda,
Perhaps you need to adjust your postgres configuration file

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b4a5f4a6-f952-411f-b637-b3a296f1a3fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hannu Krosing

unread,
Oct 13, 2014, 4:20:31 PM10/13/14
to django...@googlegroups.com
On 10/13/2014 08:31 PM, sheyda kianimehr wrote:
Yes, I did but when I want to run server python manage.py runserver
I got this message

django.db.utils.OperationalError: FATAL:  password authentication failed for user "postgres"
FATAL:  password authentication failed for user "postgres"

You think there is a problem with my DB?
I have made a new DataBase and I can access that at terminal.
Do you actually access the database "at the terminal" as the user you run django ?

Do you use the same address (IP vs. unix sockets) ?


On Saturday, October 11, 2014 12:33:03 PM UTC-5, Thomas wrote:

On Oct 11, 2014, at 10:10 AM, sheyda kianimehr <shey...@gmail.com> wrote:

Hi guys I have a problem.
I am so new in Django and Postgres

I am installed python, django, postgres on Ubuntu (acording to https://docs.djangoproject.com/en/1.7/intro/tutorial01/)
but I have problem in seting up The development server,
I see password for postgres user error after typing this is my Terminal
python manage.py runserver

I put a password in setting.py file but it doesn’t work yet.
Are you sure that you are accessing the database through django the way the database expects?

You should be able to access your database through the command line:

psql -U your_db_username dbname

Send your DATABASES variable from the settings file and we might have some more suggestions.

hth

- Tom
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages