79407018

Date: 2025-02-02 17:40:50
Score: 1.5
Natty:
Report link

Cant use

    'service': 'my_service',
    'passfile': '.pgpass',

So use decouple and tradional

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'dbms_db',
        'USER': 'dbms',
        'PASSWORD': DB_PASS,
        'HOST': '127.0.0.1',
        'PORT': '5432',
    }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): Can
  • Low reputation (1):
Posted by: Alex P