
Web.py
icodec
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ubuntu配置web.py
需要的功能: 使用web.py访问mysql,实现Basic Blog in 0.3的例子。 安装好python后: 1、安装pip sudo apt-get install python-pip 2、安装web.py sudo pip install web.py 3、安装 mysql-python,具体的命令参考: mysql-python MySQLdb Posted b原创 2012-11-20 21:12:27 · 748 阅读 · 0 评论 -
web.py datetime Invalid format string
那个blog的小程序,今天再运行的时候出错了。看了一下记录: File “C:\Python27\lib\site-packages\web.py-0.36-py2.7.egg\web\utils.py”, line 908, in da testr out = then.strftime(‘%B %e’) # e.g. ‘June 13′ ValueError: Invalid form原创 2012-11-21 00:32:14 · 1158 阅读 · 0 评论 -
一个not found搞的半死
用web.py的demo做了个Apache的部署,但一直提示not found。 到最后才查出来,原来是urls导的鬼。 把urls改成: # should modify to ('/', 'index') if you want access url with '/' urls = ( '', 'index', ) 就可以用不带’/'的地址访问了。 httpd-vhosts.conf原创 2012-11-21 00:32:47 · 430 阅读 · 0 评论