Skip to content

Commit

Permalink
Database refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEZE1020 committed Jan 12, 2025
1 parent 699084d commit 391731e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion social_media_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,17 @@

# settings.py

DATABASES = { 'default': dj_database_url.config(conn_max_age=600) }

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': config('DATABASE_NAME'),
'USER': config('DATABASE_USER'),
'PASSWORD': config('DATABASE_PASSWORD'),
'HOST': config('DATABASE_HOST'),
'PORT': config('DATABASE_PORT'),
}
}



Expand Down

0 comments on commit 391731e

Please sign in to comment.