Skip to content

Commit

Permalink
comment some code
Browse files Browse the repository at this point in the history
  • Loading branch information
a19hu committed Oct 10, 2024
1 parent 1160dc3 commit ad59b7d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions server/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@
# Database
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases

if DJANGO_ENV == 'development':
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
else: # Production settings
DATABASES = {
# if DJANGO_ENV == 'development':
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }
# }
# else: # Production settings
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': os.getenv('DB_NAME', 'familytree'),
Expand All @@ -101,7 +101,7 @@
'HOST': os.getenv('DB_HOST', '10.6.0.63'),
'PORT': os.getenv('DB_PORT', '5432'),
}
}
}


# Password validation
Expand Down

0 comments on commit ad59b7d

Please sign in to comment.