Skip to content

Commit 3e43b80

Browse files
committed
constance 변수 추가
1 parent 9ab964e commit 3e43b80

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

payment/clients.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def get_access_token(self) -> str:
1515
raise ValueError("Access Token 발급 실패: imp_key 또는 imp_secret을 찾을 수 없습니다.")
1616

1717
request_dto = {
18-
"imp_key": constance.config["imp_key"],
19-
"imp_secret": constance.config["imp_secret"]
18+
"imp_key": constance.config["IMP_KEY"],
19+
"imp_secret": constance.config["IMP_SECRET"]
2020
}
2121

2222
response = requests.post(

pyconkr/settings.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,14 @@
200200
1700,
201201
"컨퍼런스(일) 참가자 수",
202202
),
203+
"IMP_KEY": (
204+
"",
205+
"포트원 REST API 키",
206+
),
207+
"IMP_SECRET": (
208+
"",
209+
"포트원 REST API 비밀키",
210+
),
203211
}
204212

205213
# drf-spectacular

0 commit comments

Comments
 (0)