Skip to content

Commit bb9ad78

Browse files
committed
Make AWS_LOCATION optional
1 parent bdebc3b commit bb9ad78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s3file/storages.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class S3MockStorage(FileSystemStorage):
1313
@property
1414
def location(self):
15-
return settings.AWS_LOCATION
15+
return getattr(settings, 'AWS_LOCATION', '')
1616

1717
def path(self, name):
1818
return safe_join(os.path.abspath(self.base_location), self.location, name)

0 commit comments

Comments
 (0)