Re: What is the right way to use S3 as a storage backend?

2011-10-05 Thread Micky Hulse
Not sure if this will be of any help, but I switched from
django-storages to this:



I switched mostly because SORL was not working well with my S3
buckets... CuddlyBuddly has this:



Not sure if CuddlyBuddly has more features... I have been very satisfied.

Anyway, just FYI.

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



Re: What is the right way to use S3 as a storage backend?

2011-10-05 Thread Andre Terra
I may be dreaming, but IIRC ADMIN_MEDIA_PREFIX is on its way to deprecation,
so some googling might be in order.

Cheers,
AT


On Wed, Oct 5, 2011 at 11:07 AM, Kurtis  wrote:

> Okay, two things.
>
> 1. I saw I was potentionally using the wrong URL. I believe it should
> be my CDN URL. Correct me if I'm wrong but the right URL *should* be
> along the lines of: http://dw2u7t9lse636.cloudfront.net/
>
> 2. I included that ADMIN_MEDIA_PREFIX setting and it did update the
> URLs for Admin media. Thanks!
>
> Unfortunately, and this is probably an issue with Amazon -- I get a an
> access denied error when I try to access my files. For example:
>
> http://dw2u7t9lse636.cloudfront.net/css/base.css
>
> On Oct 5, 10:01 am, Kurtis  wrote:
> > I'll give that a shot. I pushed my bucket to the CDN and tried to set
> > that URL manually using:
> >
> > STATIC_URL = 'http://kurtis.s3.amazonaws.com/'
> >
> > Unfortunately, it's still trying to use /static/... Hopefully your
> > idea will work. Thanks!
> >
> > On Oct 5, 9:54 am, Shawn Milochik  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Could it be the ADMIN_MEDIA_PREFIX setting?
>
> --
> 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.
>
>

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



Re: What is the right way to use S3 as a storage backend?

2011-10-05 Thread creecode
Hello Kurtis,

On Wednesday, October 5, 2011 7:07:16 AM UTC-7, Kurtis wrote:
 

> Unfortunately, and this is probably an issue with Amazon -- I get a an 
> access denied error when I try to access my files. For example: 
>
> http://dw2u7t9lse636.cloudfront.net/css/base.css 


That response is most likely a setup issue with your permissions.  You need 
to make sure that everything along the path (bucket, folders, file) to your 
file has public access set for everyone to access via a browser.

Toodle-l
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/tPtqYK_rEwMJ.
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.



Re: What is the right way to use S3 as a storage backend?

2011-10-05 Thread Kurtis
Okay I figured it out. Another slip of mind on my part :) I had to
change my CDN url to include '/admin/' since that's the subdirectory
my admin media is uploaded to.

On Oct 5, 10:07 am, Kurtis  wrote:
> Okay, two things.
>
> 1. I saw I was potentionally using the wrong URL. I believe it should
> be my CDN URL. Correct me if I'm wrong but the right URL *should* be
> along the lines of:http://dw2u7t9lse636.cloudfront.net/
>
> 2. I included that ADMIN_MEDIA_PREFIX setting and it did update the
> URLs for Admin media. Thanks!
>
> Unfortunately, and this is probably an issue with Amazon -- I get a an
> access denied error when I try to access my files. For example:
>
> http://dw2u7t9lse636.cloudfront.net/css/base.css
>
> On Oct 5, 10:01 am, Kurtis  wrote:
>
>
>
>
>
>
>
> > I'll give that a shot. I pushed my bucket to the CDN and tried to set
> > that URL manually using:
>
> > STATIC_URL = 'http://kurtis.s3.amazonaws.com/'
>
> > Unfortunately, it's still trying to use /static/... Hopefully your
> > idea will work. Thanks!
>
> > On Oct 5, 9:54 am, Shawn Milochik  wrote:
>
> > > Could it be the ADMIN_MEDIA_PREFIX setting?

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



Re: What is the right way to use S3 as a storage backend?

2011-10-05 Thread Kurtis
Okay, two things.

1. I saw I was potentionally using the wrong URL. I believe it should
be my CDN URL. Correct me if I'm wrong but the right URL *should* be
along the lines of: http://dw2u7t9lse636.cloudfront.net/

2. I included that ADMIN_MEDIA_PREFIX setting and it did update the
URLs for Admin media. Thanks!

Unfortunately, and this is probably an issue with Amazon -- I get a an
access denied error when I try to access my files. For example:

http://dw2u7t9lse636.cloudfront.net/css/base.css

On Oct 5, 10:01 am, Kurtis  wrote:
> I'll give that a shot. I pushed my bucket to the CDN and tried to set
> that URL manually using:
>
> STATIC_URL = 'http://kurtis.s3.amazonaws.com/'
>
> Unfortunately, it's still trying to use /static/... Hopefully your
> idea will work. Thanks!
>
> On Oct 5, 9:54 am, Shawn Milochik  wrote:
>
>
>
>
>
>
>
> > Could it be the ADMIN_MEDIA_PREFIX setting?

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



Re: What is the right way to use S3 as a storage backend?

2011-10-05 Thread Kurtis
I'll give that a shot. I pushed my bucket to the CDN and tried to set
that URL manually using:

STATIC_URL = 'http://kurtis.s3.amazonaws.com/'

Unfortunately, it's still trying to use /static/... Hopefully your
idea will work. Thanks!

On Oct 5, 9:54 am, Shawn Milochik  wrote:
> Could it be the ADMIN_MEDIA_PREFIX setting?

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



Re: What is the right way to use S3 as a storage backend?

2011-10-05 Thread Shawn Milochik
Could it be the ADMIN_MEDIA_PREFIX setting?

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