weird TemplateDoesNotExist error

16 views
Skip to first unread message

Jairo Vasquez Moreno

unread,
Nov 18, 2009, 10:18:35 AM11/18/09
to google-a...@googlegroups.com
Hi,

I'm getting a lot of "TemplateDoesNotExist" errors (It's not always,
sometimes GAE raise it). And this is not because a statir dir. It's
weird because the template works but sometimes I see that error, so
it's not about that it doesnt exist. I have like 40 request per second
that fetch the template, maybe that's the reason? Is there a way to
optimize the rendering of a template? maybe using memcache?

Thanks a lot

--
Jairo Vasquez Moreno
Mentez Developer
www.mentez.com
Medellin - Colombia

Jason C

unread,
Nov 18, 2009, 4:59:33 PM11/18/09
to Google App Engine
Are you using Django 1.0? There is an initialization problem with
Django 1.0. If a DeadlineExeecedError occurs while a new instance is
spinning-up, it can leave Django 1.0 in a partially initialized state
and these kind of errors will continue to stream out until the
instance is recycled.

We've tried moving to Django 1.1 which apparently corrects this
problem. So far, so good.

j

On Nov 18, 9:18 am, Jairo Vasquez Moreno <jairo.vasq...@gmail.com>
wrote:

djidjadji

unread,
Nov 20, 2009, 3:57:40 AM11/20/09
to google-a...@googlegroups.com
> I have like 40 request per second
> that fetch the template, maybe that's the reason? Is there a way to
> optimize the rendering of a template? maybe using memcache?

In Django the templates are compiled and cached at the first time of use.
If you have 40 req/s then you have a lot of warm instances running and
only the first time they need the template it is fetched from the
disk. The number of file accesses will be well below 40/s. The
template rendering is already optimized by the function-call-tree that
the compiler builds.

2009/11/18 Jason C <jason.a...@gmail.com>:
> --
>
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
>
>
>

Tom Wu

unread,
Nov 20, 2009, 9:24:07 AM11/20/09
to google-a...@googlegroups.com
Try don't use zip-import.



2009/11/18 Jairo Vasquez Moreno <jairo....@gmail.com>
Reply all
Reply to author
Forward
0 new messages