I found that django-storages hasn't been updated in a long time (it still has the ts.strip() bug), and switched to this package:
django-storages-redux==1.2.3 Tom On Wednesday, March 13, 2013 at 3:54:36 PM UTC-7, Jesse Ramirez wrote: > > I did as Stephen said. I manually created an "uploads" directory in my > bucket. It solved the problem. > > > On Wed, Mar 13, 2013 at 5:16 PM, Jeeyun Kim <[email protected] > <javascript:>> wrote: > >> I'm having the same problem. the exception for me is occurring in >> s3boto's _normalize_name_ line. >> I wonder if it's stripping out the extra "/" as it says >> >> Attempted access to 'http:/BUCKETNAME.amazonaws.com/media/uploads' >> denied. >> >> did you find a fix? care to share the knowledge? :) >> >> >> On Saturday, January 5, 2013 3:03:32 PM UTC-8, Stephen McDonald wrote: >> >>> I think that previous thread was referring to manually creating the >>> uploads directory in your S3 bucket - I think you can do that on the amazon >>> site. >>> >>> Not sure about the other errors. >>> >>> On Sat, Jan 5, 2013 at 4:32 PM, Jesse Ramirez <[email protected]> >>> wrote: >>> >>>> Hello, >>>> >>>> I'm using s3 to host my static files and has worked fine. And I've seen >>>> this thread as i'm getting the same error: >>>> >>>> "OK think I have fixed it. Looking at the settings.py for >>>> filebrowser_safe we have >>>> DIRECTORY = getattr(settings, "FILEBROWSER_DIRECTORY", 'uploads/') >>>> So I needed to create an uploads dir in MEDIA_ROOT >>>> Will test as soon as I have a flash plugin on my dev machine but I >>>> don't get the error any more. >>>> M" >>>> >>>> If currently MEDIA_ROOT = MEDIA_ROOT = os.path.join(PROJECT_ROOT, >>>> *MEDIA_URL.strip("/").split("/")) >>>> >>>> How do I do this: >>>> "So I needed to create an uploads dir in MEDIA_ROOT" >>>> >>>> This seemed to have fixed the problem for him. >>>> >>>> I've also tried adding FILEBROWSER_DIRECTORY = STATIC_URL + >>>> 'media/uploads/' but I get: >>>> >>>> SuspiciousOperation at /admin/media-library/browse/ >>>> Attempted access to 'http:/"bucketname"/media/uploads' denied. >>>> >>>> Where bucket it my bucket's name. This error happens even though my >>>> bucket is public. >>>> >>>> What is the right approach? >>>> >>>> I appreciate the help. Thanks. >>>> >>>> >>> >>> >>> -- >>> Stephen McDonald >>> http://jupo.org >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Mezzanine Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
