Home:ALL Converter>Django with PostgreSQL database not connecting

Django with PostgreSQL database not connecting

Ask Time:2018-06-25T11:44:11         Author:stackken

Json Formatter

Just installed PostgreSQL database service, want to use it for my Django project, only for localhost. Also installed pgAdmin3LTS, which is like GUI for PostgreSQL.

PostgreSQL was installed on my os C: PostgreSQL. With pgAdmin I created a new database name: porfoliodb

Right now my object browser in pgAdmin look like this:

Server groups

-Server (1)

-Djangoserver (locohost:5432)

-Databases (2)

-Porfoliodb

-PostgreSQL

In my settings.py file:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'portfoliodb'),
        'USER': 'postgres',
        'PASSWORD': 'xxxxxxxx',
        'HOST': 'localhost',
        'PORT': '5432',

    }
}

I am new to databases, why does it not connect together?

Author:stackken,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/51016024/django-with-postgresql-database-not-connecting
yy