Exception Value: global name 's' is not defined
视图里面的内容写错了,具体如下:
html="<html><body>Now is $s.</body></html>"%s
将其该为
html="<html><body>Now is %s.</body></html>" %now
转载于:https://my.oschina.net/mkh/blog/80821