Skip to content

Commit

Permalink
Prod db settings #2 try
Browse files Browse the repository at this point in the history
  • Loading branch information
chouhanaryan committed Jun 28, 2021
1 parent 355fcd9 commit 0f123bf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions BEProjectsWeb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,13 @@
# Database
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases

DATABASES = {}
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3')
}
}
DATABASES['default'] = dj_database_url.config(conn_max_age=600)
DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2'


# Password validation
Expand Down

0 comments on commit 0f123bf

Please sign in to comment.