Skip to content

Commit

Permalink
kahluaband#19 Feat: add NCP secret key in settings.py (kahluaband#24)
Browse files Browse the repository at this point in the history
* kahluaband#19 Feat: add env file and settings about env

* kahluaband#19 Feat: add NCP secret key in settings.py
  • Loading branch information
kjiyun authored Aug 10, 2023
1 parent 05a66bb commit beab4b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kahluaproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
1 change: 1 addition & 0 deletions users/views/base_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit beab4b5

Please sign in to comment.