From 0f639f10585237cf75efdd981fab5ee29b4ba6ca Mon Sep 17 00:00:00 2001 From: "Md. Akhter-Uz-Zaman" Date: Fri, 2 Feb 2024 07:57:30 +0600 Subject: [PATCH 1/2] Added apps.core in installed_apps in settings and changed the apps.core.apps CoreConfig.name to apps.core. --- apps/core/apps.py | 2 +- config/settings.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/core/apps.py b/apps/core/apps.py index c0ce093..ab0051e 100644 --- a/apps/core/apps.py +++ b/apps/core/apps.py @@ -3,4 +3,4 @@ from django.apps import AppConfig class CoreConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" - name = "core" + name = "apps.core" diff --git a/config/settings.py b/config/settings.py index 398ed23..d5f061a 100644 --- a/config/settings.py +++ b/config/settings.py @@ -36,6 +36,7 @@ INSTALLED_APPS = [ "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", + "apps.core", ] MIDDLEWARE = [ 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 2/2] 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