Toggle navigation
Toggle navigation
This project
Loading...
Sign in
cse437_e
/
smartdoorlock-backend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
최지우
2020-10-11 16:43:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
44b8dc3263bce56070bc9af3c555b1dec11807e4
44b8dc32
1 parent
4ef78460
add Video mudule except aws settings
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
api/views.py
src/settings.py
api/views.py
View file @
44b8dc3
...
...
@@ -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.
...
...
src/settings.py
View file @
44b8dc3
...
...
@@ -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
...
...
Please
register
or
login
to post a comment