Re: how to load and render "static .txt file content" from django template

2013-12-07 Thread François Schiettecatte
You might also want to make the textarea readonly otherwise users will be able to modify the text which may not be what you want. You can also use {% include ... %} to include a static file, I do that for help pages. François On Dec 7, 2013, at 1:13 PM, Tom Lockhart wrote: > > On 2013-12-0

Re: how to load and render "static .txt file content" from django template

2013-12-07 Thread Tom Lockhart
On 2013-12-07, at 4:16 AM, Fatih Tiryakioglu wrote: > Hi all, > > I want to render a static .txt file from django template, but I can't load > it. I tried some combinations. Here is some of them: > > > > > > src="shortcut/to/text-file.txt" > > How can I load the c

how to load and render "static .txt file content" from django template

2013-12-07 Thread Fatih Tiryakioglu
Hi all, I want to render a static .txt file from django template, but I can't load it. I tried some combinations. Here is some of them: src="shortcut/to/text-file.txt" How can I load the context of this file? Thanks all. Note: I can render static image files, so it