Hi Fatih,

i would ask myself the question is this static data that not changes 
frequently or is it editable content that should be:

a) maintainable from users (without code updates of course)
b) is maintained independently form software releaes

if one of thoses questions can be answered with yes then i would go for a 
model that stores that texts. So that in fact you only render that stuff within 
a normal view (like blog posts but much more simpler)

if the answer is no: then just include it like css of js files and deliver the 
files with a custom ResponseView that reads the file content and puts it out, 
or 
a specialized template view that skips the parse and processing aspect of 
processing templates.

On Monday 13 January 2014 13:11:55 Fatih Tiryakioglu wrote:
> Hi all,
> 
> I want to render a static media .txt file from django template, but I can't
> load it. Should I use database for text comments, or is it better statatic
> text files like image files in media folder.
> 
> Any help is appreciated.
-- 


Best Regards, 
Sven

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/1711781.vXMkOL7t90%40gilgamesch.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to