Hi all and David,
I followed the http://code.larlet.fr/doc/django-s3-storage.html
installation and created a simple model
class Avatar(models.Model):
"""
Avatar model
"""
image = models.ImageField(upload_to="userprofile")
user = models.ForeignKey(User)
By using the upload_to="userprofile" (which is also the example given on the
django-s3-storage.html)
the path would be something like userprofile/my.jpg
which would trigger the file storage backend exception
File "/usr/local/src/djtrunk.latest/django/core/files/storage.py", line 81,
in path
raise NotImplementedError("This backend doesn't support absolute paths.")
where name is userprofile/my.jpg
What's the recommended way of using S3 with ImageField?
-Aaron
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---