Skip to content

Commit

Permalink
Merge pull request #8 from sunscrapers/v0.0.2
Browse files Browse the repository at this point in the history
Last corrections for v0.0.2
  • Loading branch information
zefciu authored Apr 20, 2017
2 parents 0336f58 + 8da9404 commit 88da3c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Installation
url(r'^djamazing/', include(djamazing.urls)),

Using various configurations in one project
-----------------------------
---------------------------------------------

If you want to use various configurations in one project (e.g. unprotected for
static file and protected for uploads), you can use inheritance. Create a
Expand Down
2 changes: 2 additions & 0 deletions djamazing/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ def _open(self, filename, mode='rb'):
return S3File(filename, object_)

def _save(self, filename, content):
if filename.startswith('./'): # S3 wouldn't get it
filename = filename[2:]
hash_ = hashlib.md5()
for chunk in content.chunks():
hash_.update(chunk)
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@

setup(
name="djamazing",
version='0.0.1',
version='0.0.2',
packages=find_packages(),
license='MIT',
author='SUNSCRAPERS',
author_email='[email protected]',
description='Safe storage for django using AWS S3+CloudFront',
long_description=description,
url='https://github.com/sunscrapers/djamazing',
install_requires=[
'boto3>=1.4.4',
'cryptography>=1.7.2',
Expand Down

0 comments on commit 88da3c1

Please sign in to comment.