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]


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to