Saturday, December 7, 2013

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

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:

       <textarea src="shortcut/to/text-file.txt" />

       <textarea src="shortcut/to/text-file.txt"> </textarea>

       <textarea> src="shortcut/to/text-file.txt" </textarea>

How can I load the context of this file?

Thanks all.

Note: I can render static image files, so it is not a settings problem.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b54669cb-6d8e-481a-a4f7-665fd1e0876d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate