错误信息
Traceback (most recent call last):
File "/root/anaconda2/envs/py27/lib/python2.7/site-packages/web/application.py", line , in process
return self.handle()
File "/root/anaconda2/envs/py27/lib/python2.7/site-packages/web/application.py", line , in handle
return self._delegate(fn, self.fvars, args)
File "/root/anaconda2/envs/py27/lib/python2.7/site-packages/web/application.py", line , in _delegate
return handle_class(cls)
File "/root/anaconda2/envs/py27/lib/python2.7/site-packages/web/application.py", line , in handle_class
return tocall(*args)
File "/root/web_py/autoImg/user.py", line , in GET
return render.user(temp['province'], temp['openid'], temp['headimgurl'], temp['city'], temp['country'], temp['nickname'])
File "/root/anaconda2/envs/py27/lib/python2.7/site-packages/web/template.py", line , in __getattr__
t = self._template(name)
File "/root/anaconda2/envs/py27/lib/python2.7/site-packages/web/template.py", line , in _template
return self._load_template(name)
File "/root/anaconda2/envs/py27/lib/python2.7/site-packages/web/template.py", line , in _load_template
raise AttributeError, "No template named " + name
AttributeError: No template named user
解决方法
将user.html重命名为.user.html