Thanks for your tip, I believe your suggestion will end up having my.jpg
under
my-bucket-name.s3.amazonaws.com.s3.amazonaws.com/userprofile/my.jpg

I think the AWS_STORAGE_BUCKET_NAME should just be userprofile

With your tip I think I narrow down the issue. The old way of the image
being accessed was

image = Image.open(avatar.image.path)

But S3Storage doesn't define the _path function and hence the absolute path
exception.
Not sure why S3StorageFile doesn't have the path() function either.

So how do you access the image, do you manually construct the URL?

-Aaron

On Mon, Jan 19, 2009 at 3:11 PM, creecode <creec...@gmail.com> wrote:

>
> Hey Aaron,
>
> I think part of your problem is that AWS_STORAGE_BUCKET_NAME is not
> properly specified.  It think it needs to be something like my-bucket-
> name.s3.amazonaws.com.  Based on your settings then you should find
> your images end up at http:my-bucket-name.s3.amazonaws.com/
> userprofile/ <http://my-bucket-name.s3.amazonaws.com/userprofile/>.  You
> may need to change the permissions on your bucket
> and "directories" so that you can access the images via a url.  I
> found S3 Organizer a plug-in for FireFox useful for this.
>
> Toodle-loooooooo............
> creecode
>
> On Jan 19, 1:53 pm, "Aaron Lee" <waifun...@gmail.com> wrote:
>
> > AWS_STORAGE_BUCKET_NAME='userprofile'
> >
>

--~--~---------~--~----~------------~-------~--~----~
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