From bb9ad78afe2a74c52158c1c58b15c93a43cd11ca Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Wed, 3 Jul 2019 15:06:06 +0200 Subject: [PATCH] Make AWS_LOCATION optional --- s3file/storages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3file/storages.py b/s3file/storages.py index d6b7ee5..c23e310 100644 --- a/s3file/storages.py +++ b/s3file/storages.py @@ -12,7 +12,7 @@ class S3MockStorage(FileSystemStorage): @property def location(self): - return settings.AWS_LOCATION + return getattr(settings, 'AWS_LOCATION', '') def path(self, name): return safe_join(os.path.abspath(self.base_location), self.location, name)