1👍
✅
Storage._save
should return the name of the file being saved. Your _save
does not. You should return the value from the super
call.
class CustomStorage(S3BotoStorage):
def __init__(self, *args, **kwargs):
super(CustomStorage, self).__init__(*args, **kwargs)
def _save(self,*args, **kwargs):
#Will do stuff there
print >> sys.stderr, "%s" % (self.bucket)
return super(CustomStorage, self)._save(*args, **kwargs)
- [Answer]-Why do I get "No module name users" when trying to run a newly upgraded Django 1.4 project?
Source:stackexchange.com