Skip to content

Commit

Permalink
Use env
Browse files Browse the repository at this point in the history
  • Loading branch information
ltan02 committed Mar 22, 2024
1 parent bf801b7 commit 8d430d0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
20 changes: 10 additions & 10 deletions backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion backend/auction/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
AuctionDetailApiView,
AuctionListApiView,
GetSavedUnitApiView,
GetUnitsApiView,
SaveUnitApiView,
AuctionVehiclesApiView,
)
Expand Down
2 changes: 1 addition & 1 deletion backend/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
# Database
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
""""""
if os.environ.get("ENVIRONMENT") == "prod":
if env("ENVIRONMENT") == "prod":
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
Expand Down

0 comments on commit 8d430d0

Please sign in to comment.