It's pretty straightforward to get django to automatically upload 
everything to s3 using https://github.com/qnub/django-boto/
I've only used it to server directly from s3, but it sounds like you might 
want to upload to s3 and then serve from cloudfront.  cloudfront uses edge 
servers to serve content from a nearby location whereas s3 does not.  
Slightly different configuration is needed to server from cloudfront, but I 
imagine it's not terribly difficult.

On Tuesday, August 6, 2013 12:19:12 PM UTC-4, Guy Tamir wrote:
>
> Hi all,
>
> My question is not a pure Django question, but since i'm working with 
> django and there are probably people here with experience i'll try anyway..
>
> I'm working on an app that runs on 2 servers, the first is a management 
> server where my users in certain page can upload images\videos to my server.
> The second server, among other things, shows the videos\images uploaded by 
> the users..
>
> I know Django has a form object that helps with the uploading part, my 
> question is what is the best practice regarding what to do with the files?
>
> One server is running on Heroku, the second on Amazon EC2.
>
> Should I save the files on the Heroku server and using ssh copy to the EC2 
> and serve from there 
> or should i just upload directly to Amazon S3 (or another storage service) 
> and serve the content directly from the S3?
>
> Should keep in mind that i'll want to use a CDN service (not sure if this 
> matters) 
>
> I've never hacked something like this so i'm not sure whats the common 
> practice and where to start...
>
> Best regards,
> Guy
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to