Thanks Jarek, it sounds true what you said because when I did this first implementation was in Zope. But I am not the admin. I will check with the admin here. Cheers, Alan
2008/12/28 Jarek Zgoda <[email protected]> > > Wiadomość napisana w dniu 2008-12-28, o godz. 19:05, przez Alan: > > > A external program generate files and I want to access then via > > django. I have a file "report" and buit the link to it. But when I > > click on the link to "report", instead of getting the "report" text > > content showed by my browser, I got a prompt to download it. > > > > How can I do in my template file to tell to the browser that the > > link is to a content-type "text/html"? > > > > This is handled by Content-disposition HTTP header - you have to go to > your HTTP server config and modify it to treat and serve this > particular file as readable plain text, not a binary file. Django > templates (and HTML links) have nothing to do with this, I think. > > -- > We read Knuth so you don't have to. - Tim Peters > > Jarek Zgoda, R&D, Redefine > [email protected] > > > > > -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. >>http://www.bio.cam.ac.uk/~awd28<< --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

