#StandWithUkraine
Today, 20th March 2023, Ukraine is still bravely fighting for democratic values, human rights and peace in whole world. Russians ruthlessly kill all civilians in Ukraine including childs and destroy their cities.
We are uniting against Putin’s invasion and violence, in support of the people in Ukraine. You can help by donating to Ukrainian's army.
In settings.py
check DATABASES
configuration:
- If your local passwordless Postgres database had access configured via Unix-socket, just remove
HOST
,PORT
,PASSWORD
in database:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'your_db_name',
'USER': 'postgres',
# 'PASSWORD': 'Password for postgres user',
# 'HOST': 'localhost',
# 'PORT': '5432',
}
}
- If your Postgres bound to host and there is no password required for the user, remove
PASSWORD
:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'your_db_name',
'USER': 'postgres',
# 'PASSWORD': 'Password for postgres user',
'HOST': 'localhost',
'PORT': '5432',
}
}
- If you have a user with a password – define it:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'your_db_name',
'USER': 'postgres',
'PASSWORD': 'Password for postgres user',
'HOST': 'localhost',
'PORT': '5432',
}
}
This is it. Please answer in the comments whether it works for you.