随笔分类 -  web.py

摘要:在 /etc/init.d/docker的start()函数末尾加入:chmod 777 /var/run/docker.sock否则web程序会没有权限去操作 阅读全文
posted @ 2015-01-19 12:07 BiboXie 阅读(396) 评论(0) 推荐(0)
摘要:1. 作为模板的html文件,必须是utf-8编码;2. html文件内容中的charset必须为utf-8,也就是必须包含 阅读全文
posted @ 2015-01-19 12:02 BiboXie 阅读(186) 评论(0) 推荐(0)
摘要:1.涉及到id=‘id’的情况,需要加入 vars=locals() ,因为id在python里有id() 函数db.delete('entries', where = 'id = $id', vars = locals())2.页面跳转raise web.seeother('/')3.页面循环中取... 阅读全文
posted @ 2015-01-19 11:56 BiboXie 阅读(202) 评论(0) 推荐(0)
摘要:一.安装Mod_wsgi1.先yum -y install httpd-devel,否则会提示没有apxs2.如果在make时 wsgi报错apxs:Error: Command failed with rc=65536,那要在configure时加上--with-python=xxxx这个参数3.... 阅读全文
posted @ 2015-01-19 11:47 BiboXie 阅读(663) 评论(0) 推荐(0)