Created
July 3, 2019 16:34
-
-
Save mitchtabian/69b6a9132c1e8b72584bfadc83c5cf2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[settings] | |
DEBUG=True | |
SECRET_KEY=y#bz$z0prv)@bie(@3wa@=--ana7%%k!hvo)b-3d4#0mnhh0pi6 | |
AWS_ACCESS_KEY_ID=M5YCPZP3QT36OWMMZS23 | |
AWS_SECRET_ACCESS_KEY=5Npq/S/7tX2IqBl51p3QEAMJuuGvHuFH4680Cl59M3s | |
AWS_STORAGE_BUCKET_NAME=open-api-space | |
AWS_S3_ENDPOINT_URL=https://nyc3.digitaloceanspaces.com | |
AWS_LOCATION=open-api-static |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from decouple import config | |
SECRET_KEY = config('SECRET_KEY') | |
DEBUG = config('DEBUG', default=False, cast=bool) | |
AWS_ACCESS_KEY_ID = config('AWS_ACCESS_KEY_ID') | |
AWS_SECRET_ACCESS_KEY = config('AWS_SECRET_ACCESS_KEY') | |
AWS_STORAGE_BUCKET_NAME = config('AWS_STORAGE_BUCKET_NAME') | |
AWS_S3_ENDPOINT_URL = config('AWS_S3_ENDPOINT_URL') | |
AWS_S3_OBJECT_PARAMETERS = { | |
'CacheControl': 'max-age=86400', | |
} | |
AWS_LOCATION = config('AWS_LOCATION') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment