code-google-com / apptrace

Automatically exported from code.google.com/p/apptrace
0 stars 0 forks source link

TemplateDoesNotExist: index.html #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
ERROR    2012-03-11 09:36:48,379 cgi.py:121] Traceback (most recent call last):
  File "/home/michal/dev/python/teaculture-python/apptrace/overview.py", line 122, in <module>
    main()
  File "/home/michal/dev/python/teaculture-python/apptrace/overview.py", line 118, in main
    util.run_bare_wsgi_app(app)
  File "/home/michal/dev/python/py/google/appengine/ext/webapp/util.py", line 116, in run_bare_wsgi_app
    result = application(env, _start_response)
  File "/home/michal/dev/python/py/lib/webapp2/webapp2.py", line 1519, in __call__
    response = self._internal_error(e)
  File "/home/michal/dev/python/py/lib/webapp2/webapp2.py", line 1511, in __call__
    rv = self.handle_exception(request, response, e)
  File "/home/michal/dev/python/py/lib/webapp2/webapp2.py", line 1505, in __call__
    rv = self.router.dispatch(request, response)
  File "/home/michal/dev/python/py/lib/webapp2/webapp2.py", line 1253, in default_dispatcher
    return route.handler_adapter(request, response)
  File "/home/michal/dev/python/py/lib/webapp2/webapp2.py", line 1077, in __call__
    return handler.dispatch()
  File "/home/michal/dev/python/py/lib/webapp2/webapp2.py", line 547, in dispatch
    return self.handle_exception(e, self.app.debug)
  File "/home/michal/dev/python/py/lib/webapp2/webapp2.py", line 545, in dispatch
    return method(*args, **kwargs)
  File "/home/michal/dev/python/teaculture-python/apptrace/overview.py", line 105, in get
    self.response.out.write(template.render('index.html', template_vars))
  File "/home/michal/dev/python/py/google/appengine/ext/webapp/template.py", line 88, in render
    t = load(template_path, debug)
  File "/home/michal/dev/python/py/google/appengine/ext/webapp/template.py", line 183, in load
    return _load_internal_django(path, debug)
  File "/home/michal/dev/python/py/google/appengine/ext/webapp/template.py", line 160, in _load_internal_django
    template = django.template.loader.get_template(file_name)
  File "/home/michal/dev/python/py/google/appengine/_internal/django/template/loader.py", line 157, in get_template
    template, origin = find_template(template_name)
  File "/home/michal/dev/python/py/google/appengine/_internal/django/template/loader.py", line 138, in find_template
    raise TemplateDoesNotExist(name)
TemplateDoesNotExist: index.html

Original issue reported on code.google.com by michal.h...@gmail.com on 11 Mar 2012 at 9:41

GoogleCodeExporter commented 9 years ago
I got this too, any workarounds?

Original comment by michael....@gmail.com on 7 Dec 2012 at 7:49

GoogleCodeExporter commented 9 years ago
If apptrace was installed in a subdirectory in your application (e.g. 
"apptrace"), add an "apptrace/" prefix to the index.html and code.html 
references.

Original comment by t...@cloudlock.com on 21 Feb 2013 at 10:48

GoogleCodeExporter commented 9 years ago
Alternatively, you need to adjust your template search path to include the 
"apptrace" directory (usually TEMPLATE_DIRS for django).

Original comment by t...@cloudlock.com on 24 Feb 2013 at 1:36