최지우

add Video mudule except aws settings

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