Add test bucket when testing, so we can nuke debug files

This commit is contained in:
Anna Sidwell 2018-06-27 19:30:25 +01:00 committed by Naomi
parent 7591f35483
commit 4ddc6aeacf

View File

@ -194,6 +194,9 @@ LOCALE_PATHS = [
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
AWS_S3_ENDPOINT_URL = "https://ojuso-media.nyc3.digitaloceanspaces.com"
if DEBUG:
AWS_STORAGE_BUCKET_NAME = "debug-test"
else:
AWS_STORAGE_BUCKET_NAME = "ojuso-media"
AWS_LOCATION = ""
AWS_S3_REGION_NAME = "nyc3"