Обновить backend/settings.py

This commit is contained in:
Sanzhar.swydk 2024-08-31 15:20:13 +00:00
parent 16176ab713
commit ab28bb56a5

View File

@ -114,31 +114,14 @@ WSGI_APPLICATION = 'backend.wsgi.application'
# Database # Database
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases # https://docs.djangoproject.com/en/5.0/ref/settings/#databases
""" DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'mcduck', # Поставлено как пример
'USER': 'postgres',
'PASSWORD': 'swydk', # Поставлено как пример
'HOST': 'localhost',
'PORT': '5432',
}
} """
import os import os
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.postgresql', 'ENGINE': 'django.db.backends.postgresql',
<<<<<<< HEAD
'NAME': 'mydatabase', 'NAME': 'mydatabase',
'USER': 'myuser', 'USER': 'myuser',
'PASSWORD': 'mypassword', 'PASSWORD': 'mypassword',
'HOST': 'db', 'HOST': 'db',
=======
'NAME': '',
'USER': 'postgres',
'PASSWORD': 'swydk',
'HOST': 'localhost',
>>>>>>> 50e3fec210db2b31b8f409658469cecde47a8cac
'PORT': '5432', 'PORT': '5432',
} }
} }