Skip to content

Commit

Permalink
Make AWS_LOCATION optional
Browse files Browse the repository at this point in the history
  • Loading branch information
codingjoe committed Jul 3, 2019
1 parent bdebc3b commit bb9ad78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3file/storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bb9ad78

Please sign in to comment.