From 5d2f313cf89804f52850ca2e390a97dfd5e41894 Mon Sep 17 00:00:00 2001 From: Kirill Plyashkevich Date: Tue, 23 Jun 2020 15:22:28 +0300 Subject: [PATCH] Continuation of https://github.com/opencv/cvat/pull/1641 (#1793) Added env variables for Postgres DB and user names --- cvat/settings/production.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cvat/settings/production.py b/cvat/settings/production.py index 9b591f7ad365..ae059bee06e8 100644 --- a/cvat/settings/production.py +++ b/cvat/settings/production.py @@ -26,8 +26,8 @@ 'default': { 'ENGINE': 'django.db.backends.postgresql', 'HOST': os.getenv('CVAT_POSTGRES_HOST', 'cvat_db'), - 'NAME': 'cvat', - 'USER': 'root', + 'NAME': os.getenv('CVAT_POSTGRES_DBNAME', 'cvat'), + 'USER': os.getenv('CVAT_POSTGRES_USER', 'root'), 'PASSWORD': os.getenv('CVAT_POSTGRES_PASSWORD', ''), } }