From edc2357a675167171dce39149f8ef751dd767ff0 Mon Sep 17 00:00:00 2001 From: Bryan Date: Tue, 14 Jan 2014 04:06:10 -0500 Subject: [PATCH] getting some mixed codecs, passthrough filters to clean up maybe --- karmaworld/apps/notes/management/commands/populate_s3.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/karmaworld/apps/notes/management/commands/populate_s3.py b/karmaworld/apps/notes/management/commands/populate_s3.py index f39b9ff..632075c 100644 --- a/karmaworld/apps/notes/management/commands/populate_s3.py +++ b/karmaworld/apps/notes/management/commands/populate_s3.py @@ -38,8 +38,10 @@ class Command(BaseCommand): # This is a pretty ugly hackified answer to some s3boto shortcomings # and some decent default settings chosen by django-storages. + print "Processing {0}".format(filepath) + html = note.filter_html(html) # S3 upload wants a file-like object. - htmlflo = StringIO(note.html) + htmlflo = StringIO(html) # Create the new key (key == filename in S3 bucket) newkey = default_storage.bucket.new(filepath) # Upload data! -- 2.25.1