I would use something like Amazon S3 to store the images. I think that's the easiest way to do it. If you use the django-storages plugin, you can configure your servers to talk to S3 just like they were using local storage. You will never have any problems with diskspace and all of your servers will be able to get the information regardless of which server has uploaded it.
-- Regards,
Andréas
2015-09-09 12:06 GMT+02:00 Gabriele Morgante <gabriele.morgante83@gmail.com>:
Hi,--I developed a Django 1.8.4 webapp and now I've to deploy it in production environment. The app allows users to upload images on the server. My problem is that in a production environment I've many servers with django deployed and a load balancer. Than, how can I manage Image uploading in a clustered production environment? Is there a best practice?Thanks.
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+unsubscribe@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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/815dbc40-8251-41f2-8039-fd921164a682%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALXYUbn_-D-FTg2_MOeXjHYczAhEAcC_mXzoiwdZfRfhdft72w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment