Re: Using Django's Cache

2009-07-20 Thread Daniel Roseman
On Jul 20, 5:49 pm, WilsonOfCanada wrote: > Well then I will have to try a different approach.  When using > render_to_response('webpage.html', d), I have d as a dictionary.  I > was wondering if you send a whole text file as a part of the > dictionary. > > For example: > > fileView = open('C://p

Re: Using Django's Cache

2009-07-20 Thread Luke Seelenbinder
That is entirely possible; however, it might slow down the rendering of the template, because you simply have more to handle. Luke On Jul 20, 12:49 pm, WilsonOfCanada wrote: > Well then I will have to try a different approach.  When using > render_to_response('webpage.html', d), I have d as a d

Re: Using Django's Cache

2009-07-20 Thread WilsonOfCanada
Well then I will have to try a different approach. When using render_to_response('webpage.html', d), I have d as a dictionary. I was wondering if you send a whole text file as a part of the dictionary. For example: fileView = open('C://path//main_cities.txt', 'r+') d['main_cities'] = fileView

Re: Using Django's Cache

2009-07-19 Thread Alex Gaynor
On Sun, Jul 19, 2009 at 1:05 PM, WilsonOfCanada wrote: > > Hellos, > > I was wondering if I can use Django caching system to store .txt > or .img files on the client side (as temp file).  I want to use > javascript to use them later so it would not require to transfer files > from the server again

Using Django's Cache

2009-07-19 Thread WilsonOfCanada
Hellos, I was wondering if I can use Django caching system to store .txt or .img files on the client side (as temp file). I want to use javascript to use them later so it would not require to transfer files from the server again. The txt files are just list so there is nothing about security, b