So I guess S3Storage doesn't work with ImageField? Can anyone confirm that?

-Aaron

On Thu, Jan 15, 2009 at 10:30 AM, Aaron <waifun...@gmail.com> wrote:

>
> ping?
>
> On Jan 12, 9:53 am, "Aaron Lee" <waifun...@gmail.com> wrote:
> > Hi all and David,
> >
> > I followed thehttp://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 django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to