Django dislaying upload file content
Posted
by dana
on Stack Overflow
See other posts from Stack Overflow
or by dana
Published on 2010-06-06T11:12:34Z
Indexed on
2010/06/06
11:22 UTC
Read the original article
Hit count: 328
hello, i have an application that loads different documents to the server, and allows users to read documents' content. i am uploading the documents to the server, and then i try to read the courses by id, like:
def view_course(request,id):
u = Courses.objects.get(pk=id)
etc
But i don't find anywhere : how can i actually read the content of a /.doc/.pdf/.txt and display it on a web page?
thanks in advance!
© Stack Overflow or respective owner