title: Django displaying upload file content
body: <p>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:</p>
  
  <pre><code> def view_course(request,id):
    u = Courses.objects.get(pk=id)
  </code></pre>
  
  <p>etc</p>
  
  <p>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?</p>