Traceback (most recent call last): File "/data/www/ecun/app.py", line 2555, in get self.render(tpl+'/div.html',title = tt, kw = kw, ds = ds, entries = entries, city = city, qhname = qhname, qhtype = qhtype, qhupname = qhupname, n = '3', sk = '', html = get_share(self.request.headers["User-Agent"],'https://'+self.request.host+self.request.uri), u = u, qhList = qhList, cunNum = cunNum) File "/usr/lib64/python2.7/site-packages/tornado/web.py", line 719, in render html = self.render_string(template_name, **kwargs) File "/usr/lib64/python2.7/site-packages/tornado/web.py", line 826, in render_string return t.generate(**namespace) File "/usr/lib64/python2.7/site-packages/tornado/template.py", line 348, in generate return execute() File "desktop/div_html.generated.py", line 402, in _tt_execute _tt_tmp = cunid[:1] + '/' + cunid[1:2] + '/' +cunid[2:3] + '/' + cunid[3:4] + '/' + cunid[4:5] + '/' + cunid[5:6] + '.png' # desktop/footer.html:26 (via desktop/div.html:29) NameError: global name 'cunid' is not defined