From 27344063d93adef91563cc30f34b0fd68155c3a7 Mon Sep 17 00:00:00 2001 From: "Md. Akhter-Uz-Zaman" Date: Fri, 2 Feb 2024 08:10:10 +0600 Subject: [PATCH] Added DATABASE in settings.py. --- config/settings.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/settings.py b/config/settings.py index d5f061a..1e4d67b 100644 --- a/config/settings.py +++ b/config/settings.py @@ -69,6 +69,20 @@ TEMPLATES = [ WSGI_APPLICATION = "config.wsgi.application" +# Database +# https://docs.djangoproject.com/en/5.0/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': 'your-db-name', + 'USER': 'your-db-user', + 'PASSWORD': 'your-db-user-password', + 'HOST': 'your-db-host', + 'PORT': 'your-db-port', + } +} + # Password validation # https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators