Skip to content

Commit

Permalink
go
Browse files Browse the repository at this point in the history
  • Loading branch information
ta-yahay committed Mar 9, 2024
1 parent 8ce468d commit bd0bf34
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions DjangoEHR/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,24 @@
# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases

# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }
# }
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'mydatabase',
'USER': 'lab3database',
'PASSWORD': os.getinv("DB_PASSWORD"),
'HOST': 'lab3server.postgres.database.azure.com',
'PORT': '5432',
'OPTIONS':{'sslmode':'require'},
}
}


# Password validation
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators

Expand Down

0 comments on commit bd0bf34

Please sign in to comment.