存档

2010年9月 的存档

Godaddy域名注册

2010年9月27日 没有评论

在Godaddy注册了一个域名,是给Design House用的,现在Godaddy也支持支付宝了,所以支付比较方便。
用它默认的DNS服务器,指向本博客,结果不能访问,以为是配置有问题,于是就迁回到DNSPod上解析,结果还是不行。
于是在腾讯微博上问了DNSPod客服,才知道,需要把这个域名和我的主机绑定,后来一想,想必在Godaddy上解析也是可以的,做了一个蠢事。

分类: 流淌的河 标签:

飞鸟集第82首–泰戈尔

2010年9月25日 没有评论

Let life be beautiful like summer flowers and death like autume leaves.
使生如夏花之绚烂,死如秋叶之静美。

分类: 舶来的歌 标签:

女生嚓嚓嚓

2010年9月24日 没有评论

分类: 伪宅一族 标签:

Shake–E.Via

2010年9月24日 没有评论

分类: 伪宅一族 标签:

且当微博

2010年9月22日 没有评论

祝大家中秋快乐!

分类: 流淌的河 标签:

Django安装

2010年9月21日 没有评论

Django介绍就免去了,昨天下载后,想安装,安装网上搜索的结果,就报错失败。今天看了官方文档,才搞定。看来一切都得以官方文档为准。

1.Python版本
Install Python
Being a Python Web framework, Django requires Python.

It works with any Python version from 2.4 to 2.7 (due to backwards incompatibilities in Python 3.0, Django does not currently work with Python 3.0; see the Django FAQ for more information on supported Python versions and the 3.0 transition).

说的很清楚,支持的Python版本从2.4到2.7,现在还不兼容3.0以上版本。

2.数据库
If you plan to use Django’s database API functionality, you’ll need to make sure a database server is running. Django supports many different database servers and is officially supported with PostgreSQL, MySQL, Oracle and SQLite (although SQLite doesn’t require a separate server to be running).

可以不用数据库,是可选的。这里只列出官方支持的版本,还有一些第三方支持的版本。

3.安装Django
Installing an official release
1)Download the latest release from our download page.
2)Untar the downloaded file (e.g. tar xzvf Django-NNN.tar.gz, where NNN is the version number of the latest release). If you’re using Windows, you can 3)download the command-line tool bsdtar to do this, or you can use a GUI-based tool such as 7-zip.
3)Change into the directory created in step 2 (e.g. cd Django-NNN).
4)If you’re using Linux, Mac OS X or some other flavor of Unix, enter the command sudo python setup.py install at the shell prompt. If you’re using Windows, start up a command shell with administrator privileges and run the command setup.py install.

These commands will install Django in your Python installation’s site-packages directory.

下载官方版本,默认格式都是tar.gz。
windows下用7z或者winrar解压。
进入解压缩后的文件目录。
类Unix的使用sudo python setup.py install命令安装(在终端里)。windows的使用setup.py install命令安装(在命令行里)。

注意的问题,是Python的路径要配置正确,大部分网上给出的,都是python setup.py install,都不行。关键还是要看官方文档。

分类: 编程技术 标签:

当你老了–叶芝

2010年9月20日 没有评论

当你老了,白发苍苍,睡意朦胧,
在炉前打盹,请取下这本诗篇,
慢慢吟诵,梦见你当年的双眼
那柔美的光芒与青幽的晕影;

多少人真情假意,爱过你的美丽,
爱过你欢乐而迷人的青春,
唯独一人爱你朝圣者的心,
爱你日益凋谢的脸上的哀戚;

当你佝偻着,在灼热的炉栅边,
你将轻轻诉说,带着一丝伤感:
逝去的爱,如今已步上高山,
在密密星群里埋藏它的赧颜。

分类: 舶来的歌 标签:

恵比寿マスカッツ – 私マンボー

2010年9月19日 没有评论

分类: 伪宅一族 标签:

Music Album No.2

2010年9月10日 没有评论
分类: 最大音量 标签:

Music Album No.Girls

2010年9月7日 没有评论
分类: 最大音量 标签: