After upgrading my sdk (to 1.3.4) and google-app-engine-django (to r105), I'm still having problems with sporadic TemplateDoesNotExist errors.
On Jun 18, 3:03 pm, allyourcode <allyourc...@gmail.com> wrote: > So, I finally tried installing version 1.3.4 of the SDK, which was a > bit of a headache, because my dev site would not start up after I did > this. I think this is due > tohttps://code.google.com/p/google-app-engine-django/issues/detail?id=161 > . To work around the issue, I added ipaddr supplied with the SDK to my > PYTHONPATH. I'm able to start my site now, but my original issue > (TemplateDoesNotExist) hasn't stopped happening. Another symptom of > the problem is different uncaught TemplateDoesNotExist exception with > the following message: > > Your TEMPLATE_DIRS setting is empty. Change it to point to at least > one template directory. > > This doesn't make sense, because my settings.py includes the > following: > > TEMPLATE_DIRS = ( > os.path.join(ROOT_PATH, 'templates') > ) > > This is why I believe TEMPLATE_DIRS is being cleared at some point, > something that I would never do in my app code. Another observation > that supports this theory is that the problem generally goes away when > I restart my server (I might have mentioned this before). > > I'm going to try working around this by using the svn version of > google-app-engine-django (r105), but I haven't been able to use it it > for long, so I'm not sure if it'll make the problem go away. > > grr... > > On May 8, 5:27 am,allyourcode<allyourc...@gmail.com> wrote: > > > I think the problem is that my TEMPLATE_DIRS gets cleared at some > > point, even though my app doesn't do that, at least not directly. My > > guess is that this is happening somewhere in the SDK or Django helper > > to implement the admin pages, but I can't tell which piece is doing > > the manipulation :/. > > > I'll try to upgrade my SDK, but again, when I tried this before, my > > app ended up dead in the water (forget what issues I was running into > > before). > > > On May 7, 2:08 am, "Nick Johnson (Google)" <nick.john...@google.com> > > wrote: > > > > Hi, > > > > It's impossible to suggest what might be wrong without seeing the code in > > > question. It looks like you're probably running into problems with > > > relative > > > or absolute paths, or your css file is marked as static in your app.yaml. > > > > You should definitely upgrade your SDK - 1.3.3 is the latest version, and > > > 1.2.7 is very much out of date. > > > > -Nick Johnson > > > > On Fri, May 7, 2010 at 1:00 AM,allyourcode<allyourc...@gmail.com> wrote: > > > > Hi, > > > > > I'm having a problem developing my GAE application. It's been reported > > > > as issue 464 on the GAE issue tracker, but it's not getting any > > > > attention, due to difficulties with reproducing the issue; hence, I'm > > > > turning to the GAE group to look for support. > > > > > Restarting the dev server temporarily gets rid of the problem, but it > > > > keeps coming back. I'm worried this problem will come up in > > > > production, but we haven't released our app yet, so I've never had a > > > > chance to see how it works in production. > > > > > One symptom of the problem is if you go to > > > >http://localhost:8000/_ah/admin/interactive > > > > and enter a correct program, and it hit "Run Program", the following > > > > output is (sporadically) generated: > > > > > Traceback (most recent call last): > > > > File "c:\Program Files\Google\google_appengine\google\appengine\ext > > > > \webapp\__init__.py", line 507, in __call__ > > > > handler.get(*groups) > > > > File "C:\Program Files\Google\google_appengine\google\appengine\ext > > > > \admin\__init__.py", line 737, in get > > > > self.generate('datastore.html', values) > > > > File "C:\Program Files\Google\google_appengine\google\appengine\ext > > > > \admin\__init__.py", line 131, in generate > > > > self.response.out.write(template.render(path, values, > > > > debug=_DEBUG)) > > > > File "c:\Program Files\Google\google_appengine\google\appengine\ext > > > > \webapp\template.py", line 80, in render > > > > t = load(template_path, debug) > > > > File "c:\Program Files\Google\google_appengine\google\appengine\ext > > > > \webapp\template.py", line 108, in load > > > > template = django.template.loader.get_template(file_name) > > > > File "<app_root>\django.zip\django\template\loader.py", line 81, in > > > > get_template > > > > File "<app_root>\django.zip\django\template\loader.py", line 89, in > > > > get_template_from_string > > > > File "<app_root>\django.zip\django\template\__init__.py", line 166, > > > > in __init__ > > > > File "<app_root>\django.zip\django\template\__init__.py", line 187, > > > > in compile_string > > > > File "<app_root>\django.zip\django\template\__init__.py", line 283, > > > > in parse > > > > File "<app_root>\django.zip\django\template\loader_tags.py", line > > > > 169, in do_extends > > > > File "<app_root>\django.zip\django\template\__init__.py", line 283, > > > > in parse > > > > File "<app_root>\django.zip\django\template\loader_tags.py", line > > > > 147, in do_block > > > > File "<app_root>\django.zip\django\template\__init__.py", line 283, > > > > in parse > > > > File "<app_root>\django.zip\django\template\loader_tags.py", line > > > > 187, in do_include > > > > File "<app_root>\django.zip\django\template\loader_tags.py", line > > > > 102, in __init__ > > > > File "<app_root>\django.zip\django\template\loader.py", line 80, in > > > > get_template > > > > File "<app_root>\django.zip\django\template\loader.py", line 73, in > > > > find_template_source > > > > TemplateDoesNotExist: css/datastore.css > > > > > When I restart the server, visit some pages in my app in another > > > > window, and go back to the original window containing the script was > > > > trying to run in the Interactive Console, I'm able to run it > > > > successfully without modification (this is how I know the program is > > > > correct). > > > > > Here are my versions: > > > > > GAE SDK 1.2.7 > > > > Django 1.0 > > > > GAE Django Helper r95 > > > > Python 2.5.4 > > > > Windows XP Home Edition SP3 > > > > > I know there's a new version of the SDK, but when I tried upgrading, > > > > my app stopped working, so I reinstalled version 1.2.7, which is > > > > (otherwise) working fine for me. > > > > > I know other people have experienced this. Has anyone found a > > > > solution? > > > > > Thanks, > > > > >allyourcode > > > > > -- > > > > 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-appeng...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-appengine?hl=en. > > > > -- > > > Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. > > > :: > > > Registered in Dublin, Ireland, Registration Number: 368047 > > > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: > > > 368047 > > > > -- > > > 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-appeng...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-appengine+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://groups.google.com/group/google-appengine?hl=en. > > > -- > > 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-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-appengine?hl=en. -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.