From b205a848e1ab2fbd3c4d077bf1d5ffded59ae728 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 1 Apr 2013 11:25:46 +0100 Subject: [PATCH] Use a default bucket name if env isn't defined. --- app/vapemap/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vapemap/settings.py b/app/vapemap/settings.py index b2fbf66..efcdb58 100644 --- a/app/vapemap/settings.py +++ b/app/vapemap/settings.py @@ -159,7 +159,7 @@ HAYSTACK_CONNECTIONS = { if not DEBUG: AWS_ACCESS_KEY_ID = os.environ['AWS_ACCESS_KEY_ID'] AWS_SECRET_ACCESS_KEY = os.environ['AWS_SECRET_ACCESS_KEY'] - AWS_STORAGE_BUCKET_NAME = os.environ['AWS_STORAGE_BUCKET_NAME'] + AWS_STORAGE_BUCKET_NAME = os.environ.get('AWS_STORAGE_BUCKET_NAME', 'vapemap-static') STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage' S3_URL = 'http://%s.s3.amazonaws.com/' % AWS_STORAGE_BUCKET_NAME STATIC_URL = S3_URL \ No newline at end of file