--> -->
 
 
<class 'jinja2.exceptions.TemplateNotFound'>
Python 2.7.5: /usr/bin/python
Fri Mar 29 16:35:17 2024

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

 /var/www/scronco4/public_html/scronru/cgi-bin/form.cgi in ()
    106 
    107 if __name__ == '__main__': 
=>  108         form()
    109 else:
    110         print '{0} импорт в другой модуль'.format( __main__)
form = <function form>
 /var/www/scronco4/public_html/scronru/cgi-bin/form.cgi in form()
     30                         my.mail(body = tpls['output.tpl'], subject = req['Subject'], recipient = (h["Sender"], h["Email"]) )
     31                         page = "ok.html"
=>   32         tpls = tpl.render( (page, par ) )
     33         print tpls[page]
     34 
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...ttp', 'UNIQUE_ID': 'ZgbDlAwPi3ylKUvKtOl0rwAAAHA'}}
 /var/www/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...ttp', 'UNIQUE_ID': 'ZgbDlAwPi3ylKUvKtOl0rwAAAHA'}}),))
    101                 """
    102                 if type(tpls) is not list: tpls = ( tpls, )
=>  103                 return dict((tp[0], self.env.get_template(tp[0]).render(tp[1]).encode(self.coding) ) for tp in tpls )
    104 
    105 
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...ttp', 'UNIQUE_ID': 'ZgbDlAwPi3ylKUvKtOl0rwAAAHA'}}),)
 /var/www/scronco4/public_html/scronru/cgi-bin/form.cgi in ((tp=('kotly/zapros.html', {'env': {'REDIRECT_QUERY_STRING': 'url=kotly/zapros', 'R...ttp', 'UNIQUE_ID': 'ZgbDlAwPi3ylKUvKtOl0rwAAAHA'}}),))
    101                 """
    102                 if type(tpls) is not list: tpls = ( tpls, )
=>  103                 return dict((tp[0], self.env.get_template(tp[0]).render(tp[1]).encode(self.coding) ) for tp in tpls )
    104 
    105 
builtin dict = <type 'dict'>, tp = ('kotly/zapros.html', {'env': {'REDIRECT_QUERY_STRING': 'url=kotly/zapros', 'R...ttp', 'UNIQUE_ID': 'ZgbDlAwPi3ylKUvKtOl0rwAAAHA'}}), 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.7/site-packages/jinja2/environment.py in get_template(self=<jinja2.environment.Environment object>, name='kotly/zapros.html', parent=None, globals=None)
    881         if parent is not None:
    882             name = self.join_path(name, parent)
=>  883         return self._load_template(name, self.make_globals(globals))
    884 
    885     @internalcode
self = <jinja2.environment.Environment object>, self._load_template = <bound method Environment._load_template of <jinja2.environment.Environment object>>, name = 'kotly/zapros.html', self.make_globals = <bound method Environment.make_globals of <jinja2.environment.Environment object>>, globals = None
 /usr/lib64/python2.7/site-packages/jinja2/environment.py in _load_template(self=<jinja2.environment.Environment object>, name='kotly/zapros.html', globals={'cycler': <class 'jinja2.utils.Cycler'>, 'dict': <type 'dict'>, 'joiner': <class 'jinja2.utils.Joiner'>, 'lipsum': <function generate_lorem_ipsum>, 'namespace': <class 'jinja2.utils.Namespace'>, 'range': <type 'xrange'>})
    855             ):
    856                 return template
=>  857         template = self.loader.load(self, name, globals)
    858         if self.cache is not None:
    859             self.cache[cache_key] = 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', globals = {'cycler': <class 'jinja2.utils.Cycler'>, 'dict': <type 'dict'>, 'joiner': <class 'jinja2.utils.Joiner'>, 'lipsum': <function generate_lorem_ipsum>, 'namespace': <class 'jinja2.utils.Namespace'>, 'range': <type 'xrange'>}
 /usr/lib64/python2.7/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': <type 'dict'>, 'joiner': <class 'jinja2.utils.Joiner'>, 'lipsum': <function generate_lorem_ipsum>, 'namespace': <class 'jinja2.utils.Namespace'>, 'range': <type 'xrange'>})
    113         # first we try to get the source for this template together
    114         # with the filename and the uptodate function.
=>  115         source, filename, uptodate = self.get_source(environment, name)
    116 
    117         # 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.7/site-packages/jinja2/loaders.py in get_source(self=<jinja2.loaders.FileSystemLoader object>, environment=<jinja2.environment.Environment object>, template='kotly/zapros.html')
    195 
    196             return contents, filename, uptodate
=>  197         raise TemplateNotFound(template)
    198 
    199     def list_templates(self):
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 = 'kotly/zapros.html'
      name = 'kotly/zapros.html'
      strerror = None
      templates = ['kotly/zapros.html']