Monday, January 2, 2017

Re: Serving external files with Django

Hi Priyesh,

Do you know what volume of files you expect to serve?  The answer to this question will be different depending on where the files are hosted.  If you expect a low volume of downloads, it might be easiest to just host the files on dropbox or even served from your own db.  If you expect a lot of downloads, a cloud-based solution is probably a better option. The django-boto-s3 package has good documentation for using Amazon's cloud storage: http://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html

On Monday, January 2, 2017 at 11:38:28 AM UTC-6, Priyesh Raj wrote:
Hi,

I need to serve content of external files on user action (Click on URL). The files are PDF and are not part of media or static files.

How can I serve them in Django? Is there any built in way to handle it?

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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b91a3d93-6d21-400d-8ee5-f2b801fdb1b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment