--> -->
 
 
<class 'jinja2.exceptions.TemplateNotFound'>
Python 2.6.6: /usr/bin/python
Sun Apr 22 22:57:23 2018

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/scronco4/public_html/scronru/cgi-bin/form.cgi in ()
  103 
  104 if __name__ == '__main__': 
  105         form()
  106 else:
  107         print '{0} импорт в другой модуль'.format( __main__)
form = <function form>
 /home/scronco4/public_html/scronru/cgi-bin/form.cgi in form()
   27                         my.mail(body = tpls['output.tpl'], subject = req['Subject'], recipient = (h["Sender"], h["Email"]) )
   28                         page = "ok.html"
   29         tpls = tpl.render( (page, par ) )
   30         print tpls[page]
   31 
tpls undefined, tpl = <__main__.MyTemplate instance>, tpl.render = <bound method MyTemplate.render of <__main__.MyTemplate instance>>, page = 'kotly/zapros.html', par = {'env': {'REDIRECT_QUERY_STRING': 'url=kotly/zapros', 'R...ate', 'UNIQUE_ID': 'WtzpI7TyNJOviaVU-UpLRwAAAsQ'}}
 /home/scronco4/public_html/scronru/cgi-bin/form.cgi in render(self=<__main__.MyTemplate instance>, tpls=(('kotly/zapros.html', {'env': {'REDIRECT_QUERY_STRING': 'url=kotly/zapros', 'R...ate', 'UNIQUE_ID': 'WtzpI7TyNJOviaVU-UpLRwAAAsQ'}}),))
   98                 """
   99                 if type(tpls) is not list: tpls = ( tpls, )
  100                 return dict((tp[0], self.env.get_template(tp[0]).render(tp[1]).encode(self.coding) ) for tp in tpls )
  101 
  102 
builtin dict = <type 'dict'>, tp undefined, self = <__main__.MyTemplate instance>, self.env = <jinja2.environment.Environment object>, self.env.get_template = <bound method Environment.get_template of <jinja2.environment.Environment object>>, self.coding = 'utf-8', tpls = (('kotly/zapros.html', {'env': {'REDIRECT_QUERY_STRING': 'url=kotly/zapros', 'R...ate', 'UNIQUE_ID': 'WtzpI7TyNJOviaVU-UpLRwAAAsQ'}}),)
 /home/scronco4/public_html/scronru/cgi-bin/form.cgi in ((tp=('kotly/zapros.html', {'env': {'REDIRECT_QUERY_STRING': 'url=kotly/zapros', 'R...ate', 'UNIQUE_ID': 'WtzpI7TyNJOviaVU-UpLRwAAAsQ'}}),))
   98                 """
   99                 if type(tpls) is not list: tpls = ( tpls, )
  100                 return dict((tp[0], self.env.get_template(tp[0]).render(tp[1]).encode(self.coding) ) for tp in tpls )
  101 
  102 
builtin dict = <type 'dict'>, tp = ('kotly/zapros.html', {'env': {'REDIRECT_QUERY_STRING': 'url=kotly/zapros', 'R...ate', 'UNIQUE_ID': 'WtzpI7TyNJOviaVU-UpLRwAAAsQ'}}), self = <__main__.MyTemplate instance>, self.env = <jinja2.environment.Environment object>, self.env.get_template = <bound method Environment.get_template of <jinja2.environment.Environment object>>, ).render undefined, ).encode undefined, self.coding = 'utf-8', tpls undefined
 /usr/lib64/python2.6/site-packages/jinja2/environment.py in get_template(self=<jinja2.environment.Environment object>, name='kotly/zapros.html', parent=None, globals=None)
  550                 return template
  551 
  552         template = self.loader.load(self, name, self.make_globals(globals))
  553         if self.cache is not None:
  554             self.cache[name] = template
template = None, self = <jinja2.environment.Environment object>, self.loader = <jinja2.loaders.FileSystemLoader object>, self.loader.load = <bound method FileSystemLoader.load of <jinja2.loaders.FileSystemLoader object>>, name = 'kotly/zapros.html', self.make_globals = <bound method Environment.make_globals of <jinja2.environment.Environment object>>, globals = None
 /usr/lib64/python2.6/site-packages/jinja2/loaders.py in load(self=<jinja2.loaders.FileSystemLoader object>, environment=<jinja2.environment.Environment object>, name='kotly/zapros.html', globals={'cycler': <class 'jinja2.utils.Cycler'>, 'dict': <function <lambda>>, 'joiner': <class 'jinja2.utils.Joiner'>, 'lipsum': <function generate_lorem_ipsum>, 'range': <type 'xrange'>})
   94         # first we try to get the source for this template together
   95         # with the filename and the uptodate function.
   96         source, filename, uptodate = self.get_source(environment, name)
   97 
   98         # try to load the code from the bytecode cache if there is a
source undefined, filename undefined, uptodate undefined, self = <jinja2.loaders.FileSystemLoader object>, self.get_source = <bound method FileSystemLoader.get_source of <jinja2.loaders.FileSystemLoader object>>, environment = <jinja2.environment.Environment object>, name = 'kotly/zapros.html'
 /usr/lib64/python2.6/site-packages/jinja2/loaders.py in get_source(self=<jinja2.loaders.FileSystemLoader object>, environment=<jinja2.environment.Environment object>, template='kotly/zapros.html')
  159                     return False
  160             return contents, filename, uptodate
  161         raise TemplateNotFound(template)
  162 
  163 
global TemplateNotFound = <class 'jinja2.exceptions.TemplateNotFound'>, template = 'kotly/zapros.html'

<class 'jinja2.exceptions.TemplateNotFound'>: kotly/zapros.html
      args = ('kotly/zapros.html',)
      errno = None
      filename = None
      message = u'kotly/zapros.html'
      name = 'kotly/zapros.html'
      strerror = None