최지우

add Video mudule except aws settings

......@@ -11,12 +11,12 @@ from rest_framework import status
from rest_framework.views import APIView
from rest_framework.request import Request
from rest_framework.response import Response
"""
from boto3.session import Session
from src.settings import AWS_REGION
from src.settings import S3_ACCESS_URL
from src.settings import S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, S3_STORAGE_BUCKET_NAME
"""
from datetime import datetime, timedelta
# Create your views here.
......
......@@ -123,7 +123,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
"""
AWS_REGION = 'ap-northeast-2'
AWS_SETTINGS = os.path.join(BASE_DIR, '.aws_key.json')
awskey = json.loads(open(AWS_SETTINGS).read())
......@@ -132,3 +132,4 @@ S3_ACCESS_KEY_ID = awskey['aws']['access_key_id']
S3_SECRET_ACCESS_KEY = awskey['aws']['secret_access_key']
S3_STORAGE_BUCKET_NAME = awskey['aws']['s3_bucket_name']
S3_ACCESS_URL = awskey['aws']['s3_access_url']
"""
\ No newline at end of file
......