From 8d430d053f466c640e4ebf6f85c12f5d97181f0c Mon Sep 17 00:00:00 2001 From: Lance Tan Date: Thu, 21 Mar 2024 17:09:17 -0700 Subject: [PATCH] Use env --- backend/Pipfile.lock | 20 ++++++++++---------- backend/auction/urls.py | 1 - backend/core/settings.py | 2 +- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/backend/Pipfile.lock b/backend/Pipfile.lock index 960e181..fa37d34 100644 --- a/backend/Pipfile.lock +++ b/backend/Pipfile.lock @@ -18,28 +18,28 @@ "default": { "asgiref": { "hashes": [ - "sha256:89b2ef2247e3b562a16eef663bc0e2e703ec6468e2fa8a5cd61cd449786d4f6e", - "sha256:9e0ce3aa93a819ba5b45120216b23878cf6e8525eb3848653452b4192b92afed" + "sha256:30fc07797ad71a0abb8fe34aa03c8043308a8389abc7942d797ea9911540bc28", + "sha256:ec75d9d0f04e2dbfedef1f20ee73a6594af80c333df47cdd31f37e6701f7c53a" ], - "markers": "python_version >= '3.7'", - "version": "==3.7.2" + "markers": "python_version >= '3.8'", + "version": "==3.8.0" }, "boto3": { "hashes": [ - "sha256:b611de58ab28940a36c77d7ef9823427ebf25d5ee8277b802f9979b14e780534", - "sha256:db97f9c29f1806cf9020679be0dd5ffa2aff2670e28e0e2046f98b979be498a4" + "sha256:00a7cff4887e8a46c8b2ce438f33d5f87cf7812f303227adc0266f28338af6d5", + "sha256:14f1e23b3f83ec365628a6ef849f1038b4c7338c4fabff159007c711b8147efc" ], "index": "pypi", "markers": "python_version >= '3.8'", - "version": "==1.34.65" + "version": "==1.34.68" }, "botocore": { "hashes": [ - "sha256:399a1b1937f7957f0ee2e0df351462b86d44986b795ced980c11eb768b0e61c5", - "sha256:3b0012d7293880c0a4883883047e93f2888d7317b5e9e8a982a991b90d951f3e" + "sha256:3ad0ec67f78beecc039c3c31c93a83181e30b6f789261bdbb9f5c8e8dc551812", + "sha256:e7ae9d69cc3e7b31d926e6a1a9ae673ba02da263e35cf12ff2bae35a21755cc6" ], "markers": "python_version >= '3.8'", - "version": "==1.34.65" + "version": "==1.34.68" }, "certifi": { "hashes": [ diff --git a/backend/auction/urls.py b/backend/auction/urls.py index 773bb46..f3ca8dc 100644 --- a/backend/auction/urls.py +++ b/backend/auction/urls.py @@ -6,7 +6,6 @@ AuctionDetailApiView, AuctionListApiView, GetSavedUnitApiView, - GetUnitsApiView, SaveUnitApiView, AuctionVehiclesApiView, ) diff --git a/backend/core/settings.py b/backend/core/settings.py index dbb6c30..e2ef43f 100644 --- a/backend/core/settings.py +++ b/backend/core/settings.py @@ -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",