Yes avatar.image.url works, thanks again. -Aaron

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

>
> I think you may be correct on that my tip was incorrect.  Forget what
> I said! :-)
>
> Have you tried getting the url like avatar.image.url?  I use a line
> like this in some of my code that uses S3Storage and it works.
>
> image_url = my_model_instance.image.url.replace ( ':80', '' )
>
> On Jan 19, 4:01 pm, "Aaron Lee" <waifun...@gmail.com> wrote:
> > 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
>
> > So how do you access the image, do you manually construct the URL?
> >
>

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