落就是一道风景线……

Archive for the ‘Development’ Category

BFG

04.20.2010 · Posted in Python

BFG is a Python web application framework based on WSGI. BFG is also referred to as repoze.bfg. BFG shares version control facilities with the Repoze project, and is developed by the same primary developers, but its goals are different than the overall goals of the Repoze project. BFG is inspired by Zope, Pylons and Django. "Under ...

Windows+Python2.6+MySQL驱动安装

04.14.2010 · Posted in Python

在Python中使用MySQL需要安装MySQLdb,但从官方站点 http://sourceforge.net/projects/mysql-python/ 目前只能下载到只持Python2.5版的MySQLdb。这里介绍Windows下安装MySQLdb的方法和常见问题处理。 ...

Django ImportError: Settings cannot be imported

04.06.2010 · Posted in Python

使用Django时在命令行中敲击Python命令进入交互模式,如果直接如下操作: from django.template import Template ,Context t = Template(”Test is {{test}}”) 会导致: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. ...

Python开发,我用WingIDE

02.23.2010 · Posted in Development, Python

“工欲善其事,必先利其器。”最开始接触Python的人大都用自带的LDLE,曾经一直想找如MyEclipse一样支持Java的IDE。在网上GG、Baidu,发觉N多人讲出大把大把的IDE,而且讲超多口水话,到最后把人的耐心全给磨叽掉。于是自己去尝试,最后发现WingIDE最好用。也许有人会觉得这是因为符合自身的习惯,那么你也可以这样认为吧。简单的说,WingIDE只为Python设计,绝对是超赞的IDE。 ...

Python import 代码优雅诗

01.04.2010 · Posted in Python

LDLE中输入import this就会出现如何书写优雅的小诗,当然,严格的来讲也许并不能算作一首诗。不过现代诗形式多样,所以也未必就不可以。好了,一起欣赏: >>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. ...