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,7 +194,10 @@ LOCALE_PATHS = [
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
AWS_S3_ENDPOINT_URL = "https://ojuso-media.nyc3.digitaloceanspaces.com"
AWS_STORAGE_BUCKET_NAME = "ojuso-media"
if DEBUG:
AWS_STORAGE_BUCKET_NAME = "debug-test"
else:
AWS_STORAGE_BUCKET_NAME = "ojuso-media"
AWS_LOCATION = ""
AWS_S3_REGION_NAME = "nyc3"
AWS_S3_CUSTOM_DOMAIN = "ojuso-media.nyc3.digitaloceanspaces.com/ojuso-media"