From beab4b515bae1f500b74919d5e1a7d59832bd0bb Mon Sep 17 00:00:00 2001 From: kjiyun <112507402+kjiyun@users.noreply.github.com> Date: Thu, 10 Aug 2023 16:07:36 +0900 Subject: [PATCH] #19 Feat: add NCP secret key in settings.py (#24) * #19 Feat: add env file and settings about env * #19 Feat: add NCP secret key in settings.py --- kahluaproject/settings.py | 5 +++++ users/views/base_views.py | 1 + 2 files changed, 6 insertions(+) diff --git a/kahluaproject/settings.py b/kahluaproject/settings.py index 4727702..d3d4d00 100644 --- a/kahluaproject/settings.py +++ b/kahluaproject/settings.py @@ -30,6 +30,11 @@ IAMPORT_KEY = env('IAMPORT_KEY') IAMPORT_SECRET = env('IAMPORT_SECRET') +NCP_SERVICE_ID = env('NCP_SERVICE_ID') +NCP_SECRET_KEY = env('NCP_SECRET_KEY') +NCP_ACCESS_KEY_ID = env('NCP_ACCESS_KEY_ID') + +SENDER_PHONE_NUM = env('SENDER_PHONE_NUM') # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ diff --git a/users/views/base_views.py b/users/views/base_views.py index beb18b0..688ad6b 100644 --- a/users/views/base_views.py +++ b/users/views/base_views.py @@ -6,6 +6,7 @@ from rest_framework import serializers from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.generics import CreateAPIView, GenericAPIView, RetrieveAPIView, UpdateAPIView +from rest_framework_simplejwt.tokens import RefreshToken from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema