Thursday, May 26, 2011

How to I create download link of some file using django

Dear all,

I am new to django and still kinda confused about how to handle
download link using django. What I did up to now was having a file
handle and point that handle to django's File object. So, now I have
django file object but I don't know how to incorporate that file
object into my template. Doing somefile.name will only give the file
name on the template, though; but how do I create a downloadable link
for that file from that on my template?

Best,

Kann

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate