Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
feat: Update for .env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
satya7289 committed Aug 20, 2020
1 parent 0dc2fdf commit 1cd8ac7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ DB_PASSWORD =
DB_HOST = localhost
DB_PORT = 5432

# Test DB settings

TEST_DB_NAME = systersdb
TEST_DB_USER =
TEST_DB_PASSWORD =
TEST_DB_HOST = localhost
TEST_DB_PORT = 5432

# Email settings

EMAIL_HOST = localhost
Expand Down
10 changes: 5 additions & 5 deletions systers_portal/systers_portal/settings/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': config('DB_NAME', default='systersdb'),
'USER': config('DB_USER'),
'PASSWORD': config('DB_PASSWORD'),
'HOST': config('DB_HOST', default='localhost'),
'PORT': config('DB_PORT', default=5432, cast=int),
'NAME': config('TEST_DB_NAME', default='systersdb'),
'USER': config('TEST_DB_USER'),
'PASSWORD': config('TEST_DB_PASSWORD'),
'HOST': config('TEST_DB_HOST', default='localhost'),
'PORT': config('TEST_DB_PORT', default=5432, cast=int),
}
}

Expand Down

0 comments on commit 1cd8ac7

Please sign in to comment.