Tuesday, January 3, 2017

Re: Serving external files with Django

Hello,

(This is probably not what you mean, but PDF files can perfectly be considered to be "media files". The term "media" is a bit suboptimal—in Django parlance it refers to any files that are uploaded by the user or anyway are conceptually part of the database.)

If what you want to do is serve files through Django instead of directly through the web server (the common use case for this is when you want to check permissions before allowing downloads), check these links:

Regards,

Antonis

Antonis Christofides  http://djangodeployment.com    
On 01/02/2017 06:16 PM, 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/CAOMjGk-7iQmg%3DKwzUJ2vgYryb4ODFnmRfLdHJFC8wPKeVW0hqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment