forked from pythonkr/pyconkr-api-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings-dev.py
More file actions
30 lines (25 loc) · 800 Bytes
/
settings-dev.py
File metadata and controls
30 lines (25 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import os
from pyconkr.settings import *
DEBUG = True
ALLOWED_HOSTS += [
"api-dev.pycon.kr",
]
# RDS
DATABASES = {
"default": {
"ENGINE": "mysql.connector.django",
"NAME": os.getenv("AWS_RDS_DATABASE"),
"USER": os.getenv("AWS_RDS_USER_ID"),
"PASSWORD": os.getenv("AWS_RDS_PW"),
"HOST": os.getenv("AWS_RDS_HOST"),
"PORT": os.getenv("AWS_RDS_PORT"),
}
}
# django-storages: S3
del MEDIA_ROOT
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
STATICFILES_STORAGE = "storages.backends.s3boto3.S3StaticStorage"
AWS_S3_ACCESS_KEY_ID = os.getenv("AWS_S3_ACCESS_KEY_ID")
AWS_S3_SECRET_ACCESS_KEY = os.getenv("AWS_S3_SECRET_ACCESS_KEY")
AWS_DEFAULT_REGION = "ap-northeast-2"
AWS_STORAGE_BUCKET_NAME = "pyconkr-api-v2-static-dev"