落就是一道风景线……

Archive for the ‘Python’ Category

apache中django后台admin界面css丢失

05.19.2010 · Posted in Python

<VirtualHost *:80> ......................... <Directory "/usr/local/lib/site-packages/django/contrib/admin/media"> Order Deny,Allow Allow from all </Directory> Alias "/media" "/usr/local/lib/site-packages/django/contrib/admin/media" <Location "/media"> SetHandler None </Location> .............................. </VirtualHost> ...

GUI Programming in Python

05.14.2010 · Posted in Python

Python has a huge number of GUI frameworks (or toolkits) available for it, from Tkinter (traditionally bundled with Python, using Tk) to a number of other cross-platform solutions, as well as bindings to platform-specific (also known as “native”) technologies. GUI Programming in Python is a similar page. It’s not apparent to this reporter how the aims of the two ...

Ubuntu下python安装mysqldb(驱动)

05.14.2010 · Posted in Python

之前有写过《Windows+Python2.6+MySQL驱动安装》,今天呢是Ubuntu下给python安装mysql驱动,方法如下: 在终端中输入:sudo apt-get install python-mysqldb OK,搞定,简单吧?来测试下 安装完成之后可以在Python解释器中测试一下 输入 import MySQLdb #注意大小写 如果不报错,就证明安装成功了。 ...

Win配置Apache+mod_wsgi+django环境+域名

05.14.2010 · Posted in Python

Python是落落的最爱,Django是Python web framework中的佼佼者,所以一直超爱。当然,Python web server也有N多选择,这里落落使用Apache+mod_wsgi来配置(也有用apache+mod_Python来配置的,不过貌似在Out中……)。如果有朋友是Google或者Baidu过来想了解下是怎样配置的,也许落落这篇博文可以帮到你。 ...

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。 ...