Can Django template use relative path in 'include' tag?

2006-06-01 Thread Wei Litao
want simply use something like '{% include " tmpl2.html" %}' , because tmpl2.html lived in the same folder as tmpl1.html. Is it possible to do that?-- Sincerely,Wei Litao --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Can Django template use relative path in 'include' tag?

2006-06-01 Thread Wei Litao
On 6/2/06, James Bennett <[EMAIL PROTECTED]> wrote: On 6/1/06, Wei Litao <[EMAIL PROTECTED]> wrote:> I have a template which reside in 'myapp/tmpl1.html'. In this template I> want to 'include' another template which reside in 'myapp/tmpl2.html'. But

how to manually invlaid a cached view?

2006-06-26 Thread Wei Litao
I have checked the cache document, it said that an view can have an @cache_page(60 * 15) decorator to store it on a cache, But it didn't say how to fluch it. Is there some api to invalid a view cache manually? I want to invalid some view cache when calling another view. Sincerely,Wei

Re: how to manually invlaid a cached view?

2006-06-26 Thread Wei Litao
ROTECTED]> wrote: On 6/26/06, Wei Litao <[EMAIL PROTECTED]> wrote:> I have checked the cache document, it said that an view can have an> @cache_page(60 * 15) decorator to store it on a cache, But it didn't say how > to fluch it. Is there some api to invalid a view cache ma

How to use lighttpd error-handler-404 handler to serve django?

2006-07-13 Thread Wei Litao
to django server. Is is possible to hack that script to use error-handler-404? -- Sincerely, Wei Litao --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro