Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

postgtres settings.py setup with django

DATABASES = {

    'default': {

        'ENGINE': 'django.db.backends.postgresql',

        'NAME': ‘<db_name>’,

        'USER': '<db_username>',

        'PASSWORD': '<password>',

        'HOST': '<db_host>',

        'PORT': '<db_port>',

    }

}
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #postgtres #setup #django
ADD COMMENT
Topic
Name
6+2 =