<class 'jinja2.exceptions.TemplateNotFound'>
Python 2.6.6: /home/pizza/apps/pizzachaser/venv/bin/python
Fri Apr 28 13:46:49 2017

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/pizza/apps/pizzachaser/venv/lib/python2.6/site-packages/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
  556         """Runs the handler, flushes the streams, and ends the request."""
  557         try:
  558             protocolStatus, appStatus = self.server.handler(self)
  559         except:
  560             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>>
 /home/pizza/apps/pizzachaser/venv/lib/python2.6/site-packages/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
 1116         try:
 1117             try:
 1118                 result = self.application(environ, start_response)
 1119                 try:
 1120                     for data in result:
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <Flask 'app'>, environ = {'CONTEXT_DOCUMENT_ROOT': '/home/pizza/apps/pizzachaser', 'CONTEXT_PREFIX': '', 'DOCUMENT_ROOT': '/home/pizza/apps/pizzachaser', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'pizzachaser.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', ...}, start_response = <function start_response>
 /home/pizza/apps/pizzachaser/venv/lib/python2.6/site-packages/flask/app.py in __call__(self=<Flask 'app'>, environ={'CONTEXT_DOCUMENT_ROOT': '/home/pizza/apps/pizzachaser', 'CONTEXT_PREFIX': '', 'DOCUMENT_ROOT': '/home/pizza/apps/pizzachaser', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'pizzachaser.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', ...}, start_response=<function start_response>)
 1998     def __call__(self, environ, start_response):
 1999         """Shortcut for :attr:`wsgi_app`."""
 2000         return self.wsgi_app(environ, start_response)
 2001 
 2002     def __repr__(self):
self = <Flask 'app'>, self.wsgi_app = <bound method Flask.wsgi_app of <Flask 'app'>>, environ = {'CONTEXT_DOCUMENT_ROOT': '/home/pizza/apps/pizzachaser', 'CONTEXT_PREFIX': '', 'DOCUMENT_ROOT': '/home/pizza/apps/pizzachaser', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'pizzachaser.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', ...}, start_response = <function start_response>
 /home/pizza/apps/pizzachaser/venv/lib/python2.6/site-packages/flask/app.py in wsgi_app(self=<Flask 'app'>, environ={'CONTEXT_DOCUMENT_ROOT': '/home/pizza/apps/pizzachaser', 'CONTEXT_PREFIX': '', 'DOCUMENT_ROOT': '/home/pizza/apps/pizzachaser', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'pizzachaser.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', ...}, start_response=<function start_response>)
 1989             except Exception as e:
 1990                 error = e
 1991                 response = self.make_response(self.handle_exception(e))
 1992             return response(environ, start_response)
 1993         finally:
response undefined, self = <Flask 'app'>, self.make_response = <bound method Flask.make_response of <Flask 'app'>>, self.handle_exception = <bound method Flask.handle_exception of <Flask 'app'>>, e = TemplateNotFound()
 /home/pizza/apps/pizzachaser/venv/lib/python2.6/site-packages/flask/app.py in handle_exception(self=<Flask 'app'>, e=TemplateNotFound())
 1572         if handler is None:
 1573             return InternalServerError()
 1574         return handler(e)
 1575 
 1576     def log_exception(self, exc_info):
handler = <function internal_server_error>, e = TemplateNotFound()
 /home/pizza/apps/pizzachaser/app/main/errors.py in internal_server_error(e=TemplateNotFound())
    8 
    9 
   10 @main.app_errorhandler(500)
   11 def internal_server_error(e):
   12     return render_template('500.html'), 500
global render_template = <function render_template>
 /home/pizza/apps/pizzachaser/venv/lib/python2.6/site-packages/flask/templating.py in render_template(template_name_or_list='500.html', **context={'current_user': <flask_login.mixins.AnonymousUserMixin object>, 'g': <flask.ctx._AppCtxGlobals object>, 'moment': <class 'flask_moment._moment'>, 'request': <Request 'https://pizzachaser.com/runp-mysql.fcgi/runp-mysql.fcgi' [GET]>, 'session': <SecureCookieSession {}>})
  131     ctx = _app_ctx_stack.top
  132     ctx.app.update_template_context(context)
  133     return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
  134                    context, ctx.app)
  135 
global _render = <function _render>, ctx = <flask.ctx.AppContext object>, ctx.app = <Flask 'app'>, ctx.app.jinja_env = <flask.templating.Environment object>, ctx.app.jinja_env.get_or_select_template = <bound method Environment.get_or_select_template of <flask.templating.Environment object>>, template_name_or_list = '500.html', context = {'current_user': <flask_login.mixins.AnonymousUserMixin object>, 'g': <flask.ctx._AppCtxGlobals object>, 'moment': <class 'flask_moment._moment'>, 'request': <Request 'https://pizzachaser.com/runp-mysql.fcgi/runp-mysql.fcgi' [GET]>, 'session': <SecureCookieSession {}>}
 /home/pizza/apps/pizzachaser/venv/lib/python2.6/site-packages/jinja2/environment.py in get_or_select_template(self=<flask.templating.Environment object>, template_name_or_list='500.html', parent=None, globals=None)
  849         """
  850         if isinstance(template_name_or_list, string_types):
  851             return self.get_template(template_name_or_list, parent, globals)
  852         elif isinstance(template_name_or_list, Template):
  853             return template_name_or_list
self = <flask.templating.Environment object>, self.get_template = <bound method Environment.get_template of <flask.templating.Environment object>>, template_name_or_list = '500.html', parent = None, globals = None
 /home/pizza/apps/pizzachaser/venv/lib/python2.6/site-packages/jinja2/environment.py in get_template(self=<flask.templating.Environment object>, name='500.html', parent=None, globals=None)
  810         if parent is not None:
  811             name = self.join_path(name, parent)
  812         return self._load_template(name, self.make_globals(globals))
  813 
  814     @internalcode
self = <flask.templating.Environment object>, self._load_template = <bound method Environment._load_template of <flask.templating.Environment object>>, name = '500.html', self.make_globals = <bound method Environment.make_globals of <flask.templating.Environment object>>, globals = None
 /home/pizza/apps/pizzachaser/venv/lib/python2.6/site-packages/jinja2/environment.py in _load_template(self=<flask.templating.Environment object>, name='500.html', globals={'bootstrap_find_resource': <function bootstrap_find_resource>, 'bootstrap_is_hidden_field': <function is_hidden_field_filter>, 'config': <Config {'JSON_AS_ASCII': True, 'BOOTSTRAP_LOCAL... datetime.timedelta(0, 43200), 'MAIL_PORT': 587}>, 'cycler': <class 'jinja2.utils.Cycler'>, 'dict': <type 'dict'>, 'g': <LocalProxy unbound>, 'get_flashed_messages': <function get_flashed_messages>, 'joiner': <class 'jinja2.utils.Joiner'>, 'lipsum': <function generate_lorem_ipsum>, 'range': <type 'xrange'>, ...})
  772         try:
  773             # use abs path for cache key
  774             cache_key = self.loader.get_source(self, name)[1]
  775         except RuntimeError:
  776             # if loader does not implement get_source()
cache_key undefined, self = <flask.templating.Environment object>, self.loader = <flask.templating.DispatchingJinjaLoader object>, self.loader.get_source = <bound method DispatchingJinjaLoader.get_source of <flask.templating.DispatchingJinjaLoader object>>, name = '500.html'
 /home/pizza/apps/pizzachaser/venv/lib/python2.6/site-packages/flask/templating.py in get_source(self=<flask.templating.DispatchingJinjaLoader object>, environment=<flask.templating.Environment object>, template='500.html')
   55         if self.app.config['EXPLAIN_TEMPLATE_LOADING']:
   56             return self._get_source_explained(environment, template)
   57         return self._get_source_fast(environment, template)
   58 
   59     def _get_source_explained(self, environment, template):
self = <flask.templating.DispatchingJinjaLoader object>, self._get_source_fast = <bound method DispatchingJinjaLoader._get_source...<flask.templating.DispatchingJinjaLoader object>>, environment = <flask.templating.Environment object>, template = '500.html'
 /home/pizza/apps/pizzachaser/venv/lib/python2.6/site-packages/flask/templating.py in _get_source_fast(self=<flask.templating.DispatchingJinjaLoader object>, environment=<flask.templating.Environment object>, template='500.html')
   83             except TemplateNotFound:
   84                 continue
   85         raise TemplateNotFound(template)
   86 
   87     def _iter_loaders(self, template):
global TemplateNotFound = <class 'jinja2.exceptions.TemplateNotFound'>, template = '500.html'

<class 'jinja2.exceptions.TemplateNotFound'>: 500.html
      args = ()
      errno = None
      filename = None
      message = '500.html'
      name = '500.html'
      strerror = None
      templates = ['500.html']