From 0b8eee6da9f4d9cc194a7f221af1ac86eca32217 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Mon, 27 Jan 2020 21:23:40 +0000 Subject: [PATCH] the password of pgsql is a secret --- note_kfet/settings/production.py | 8 ++++---- note_kfet/settings/secrets.py_example | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/note_kfet/settings/production.py b/note_kfet/settings/production.py index 834c9633..c3283ad4 100644 --- a/note_kfet/settings/production.py +++ b/note_kfet/settings/production.py @@ -11,11 +11,11 @@ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', - 'NAME': 'mydatabase', - 'USER': 'mydatabaseuser', - 'PASSWORD': 'mypassword', + 'NAME': 'note_db', + 'USER': 'note', + 'PASSWORD': 'update_in_secrets.py', 'HOST': '127.0.0.1', - 'PORT': '5432', + 'PORT': '', } } diff --git a/note_kfet/settings/secrets.py_example b/note_kfet/settings/secrets.py_example index 0f1394f4..77662a48 100644 --- a/note_kfet/settings/secrets.py_example +++ b/note_kfet/settings/secrets.py_example @@ -1,2 +1,2 @@ - -SECRET_KEY = 'CHANGE_ME_IN_LOCAL_SETTINGS!' +DATABASE['default']['PASSWORD'] ='CHANGE_ME' +SECRET_KEY = 'CHANGE_ME'