Django community: Django links RSS
This page, updated regularly, aggregates Django links from the Django community.
-
第二年使用Burst的VPS
第一年使用Burst的VPS,为它灵活的设置吸引,系统支持主流的Linux发行版本,如SentOS,Fedora,Debian,Ubuntu,Centoo,这么多的选择中,有喜欢的Debian,并且安装系统只需要在后台reload一下,花上几分钟的时间,一个纯净的系统就安装好了。剩下的就是自由的环境配置了。还有关键的就是学习用途,VPS的价格最具竞争价值,每个月5.95美元,买满一年,只收10个月的租金,在这个基础上,再打上7.5折,一年下来,就是300(约290)元不到。今年继续购买,发票已经下来了:VPS #1 (Virtual Private Server) - vePortal - (LOS ANGELES, CA) - (12/22/2011 - 12/21/2012) $59.51 USDPromotional Code: LOWENDLAVPS - 25.00% Recurring Discount $-14.88 USD------------------------------------------------------Sub Total: $44.63 USDCredit: $0.00 USDTotal: $44.63 USDAmount: $44.63 USDTotal Paid: $44.63 USDRemaining Balance: $0.00 USDStatus: Paid不过有个问题就是,Burst 的VPS #1 不是很稳定,有时会掉线,商业用途这点很致命,学习用途是超值的。 -
第二年使用Burst的VPS
第一年使用Burst的VPS,为它灵活的设置吸引,系统支持主流的Linux发行版本,如SentOS,Fedora,Debian,Ubuntu,Centoo,这么多的选择中,有喜欢的Debian,并且安装系统只需要在后台reload一下,花上几分钟的时间,一个纯净的系统就安装好了。剩下的就是自由的环境配置了。还有关键的就是学习用途,VPS的价格最具竞争价值,每个月5.95美元,买满一年,只收10个月的租金,在这个基础上,再打上7.5折,一年下来,就是400元不到。今年继续购买,发票已经下来了:VPS #1 (Virtual Private Server) - vePortal - (LOS ANGELES, CA) - (12/22/2011 - 12/21/2012) $59.51 USDPromotional Code: LOWENDLAVPS - 25.00% Recurring Discount $-14.88 USD------------------------------------------------------Sub Total: $44.63 USDCredit: $0.00 USDTotal: $44.63 USDAmount: $44.63 USDTotal Paid: $44.63 USDRemaining Balance: $0.00 USDStatus: Paid不过有个问题就是,Burst的VPS #1 不是很稳定,有时会掉线,商业用途这点很致命,学习用途是超值的。 -
尽量不要使用Django select_related()
Django的select_related()在1.3.1之前(包括1.3.1)都存在性能的问题,今天使用debug_toolbar大概测试了一下,depth=1,发现性能损失了20%以上,如果不指定depth,model关系复杂的时候,可能会损失更多。select_related()对关联多的实体本身是一个很好的方案,采用了内连接,减少数据库多次发起连接动作,按理来说性能会更优,但很奇怪,测试结果却相反。自己的测试的实体集合,不采用select_related(),耗时76ms,sql连接数47,而用了select_related()后,耗时97ms,sql连接数37。 -
无聊无题的无稽之谈
不记得什么时候开始有打开Django的Timeline观望的习惯了,思维有点乱,Google的Chrome才是真的版本帝,每天几十到几百条,甚者千余条bug Fixed,现在安装金丝雀,几乎每天都有更新,而且一两个月幸运才能逮到一个两个bug,这样的效率和质量让人羡慕不已。Django的Timeline上,每天都能看到几十条的Bug Fixed。平均应该有20条以上吧。嗯,用平稳来形容吧,再仔细看看Fixed了什么东西,都是一些琐碎的完善和扩展,没有太多的想要看的:想看到的比如:在ORM QuerySet上进行一些运算再filter再order;或者增强Forms的易用性,解决csrf通俗处理等等之类的。再看看Github上的Rails,也差不多的情形,都马不停蹄的进行中,以上说的是参与度。两边的阵容都很豪华,有不少的名人。我喜欢Django,是因为Python语言简洁成熟,语言风格适合本人。而Django是以程序员的法则去引导开发,玩Django的或多或少为一些细节困扰,因为我们常常碰到市场的需求,碰到非技术人的要求,常常为他们那些看似无理的东西,感到愤怒,到最后想想也不无道理,有时候有得折腾。所以在界内,Django不能成为web framework的标准。我倒觉得Rails倒是人们寻找的那个标准,没有深入,只是偶尔看看,不难理解,人总有感知的,谈谈想法而不是真相。他们有相似的地方,Rails有一种架势,不管黑猫白猫,能抓到老鼠就是好猫。Rails的大方向很准,有人心有市场,而且常常具备一些亮点,不足的是平台上的一致性还需要点时间发展。这两个都是完美的框架。同一时期,微框架也很出位,如:flask bottle,sinatra 等等,特点很多,易上手,性能出众,好扩展,插件丰富。框架本身就一千几千行的代码,实现的只是核心必要的功能。要想做一件东西出来,需要找插件来辅助,或可以造轮子,创造自己的插件。这样的框架也同样有利有弊,利:让第三方(或自己的分支)集中精力做好插件,做精品级的东西和同类插件竞争,优胜略汰,给用户争取精品中的精品;弊:选择的问题,用户精力的分散。IT发展很快,这些东西已经是前浪,一些新新的东西已经出来了。Node不是语言,大概就是借助Javascript语言,Google V8,集中一些类语言的东西,封装在一起,让用户使用javascript语言开发服务端的东西。Mozilla也有自己的javascript引擎,同时也在开发类似Node的东西。Node特点是 异步的 无阻塞的,性能极高。其下的web framework也陆续出来了,如:expressjs,geddy ,express on railway,活跃度,参与度比较高的应该是expressjs,它是sinatra 的node实现,算是一个微框架,express on railway就是从它那里引伸过来的,不过railway是类似rails的框架,参与度还不算很高。express on railway,express 的发明者都是从Rails阵营过来的,代码中常常看到Rails的身影。Geddy是个特别的框架,有点像Django,也有Rails的身影,作者最近很忙,开发进展有点缓慢,听说他正参与另一个更重要的项目。开发类似Django Rails的Node框架(或者是full-stack框架),可能需要更多的人,技术和基金。发现完善的东西为其尚早。相反微框架开发要轻松的多,所以express就很活跃。现在还是初期,相信很快就有full-stack框架出来了。 -
悲剧的辉腾[转]
一大哥花了256万买了辆W12 缸6.0的大众辉腾, 杯具了。某日,大哥进停车场,正在自动泊车中,管理员冲他喊道:“喂,开帕萨特的小心点,别把边上的新宝马320给撞了,你赔不起”,大哥一怒吼到 “老子的车够买他10辆了”某日,大哥进加油站,一不留神,加油小妹的93号枪就对准开加了,大哥汗都下来了,吼到”老子是要加 97的,谁让你自作主张加93了.” 小妹好心的回说“大哥,帕萨特加93的绝对没事,我每天都加多少帕萨特,93的省钱,不是奔驰宝马没必要加97”某日,大哥去夜店泡妞,看中一正妹后,相约一并外出霄夜,兼后半场,正妹看大哥气质不凡,跟他走向停车的地方,一见大哥的辉腾,正妹扭头就走,并说到“开桑塔纳还好意思约我吃霄夜,早知道跟刚才开凯美瑞的走了。某日,大哥宴请一高官,开车到其家接他,大哥恭敬的把车门打开,高官走近一看,说道:“我还是让司机把A6开出来吧”某日,大哥到一处接朋友,此小区门口黑车众多,大哥在车上等朋友之际听到黑司机们议论,“这么好的车也出来拉活啊”,另一位说到“可能单位的吧,不过帕萨特怎么也得百公里8个油吧”,大哥摇下车窗怒吼之“老子百公里得17个油”某日,大哥一朋友之重要朋友结婚,要借一重量级头车,大哥厚道之人,虽爱车之心无比,也大方出借,事后朋友还车,大哥自豪问到“怎么样,让你在朋友面前长脸了吧”,朋友叹道“别提了,朋友非说这是一老款的帕萨特太不拉风,最后又花钱租了一辆当前的红色跑车当婚车,你的车就排到婚车队最后一个专门接送上了年纪的老人家和儿童了。”某日,大哥停完车正往外准备走的时候,听见身后两个年轻人的对话,一人说到“快看,哇塞,辉腾啊!”,大哥心中一片舒坦,终于有识货之人,正爽之际,听到另一年轻人说“晕,还真有傻子买它啊。” -
Ubuntu下Nodejs开发环境快速搭建
Nodejs很火,在Ubuntu下搭建它的开发环境尝尝鲜,有一个捷径,它能让系统自动帮你安装所需要的东西,我们生成一段shell脚本,让它来完成以下工作: 安装git下最新的node,node包管理器,Forever和Cloud9IDE工具(可选),mongodb 10gen;脚本的正常运行需要比较新板的Ubuntu,而且需要联网,因为它会连接网络去下载所有的依赖包顺序安装。#!/bin/sh # Update System echo 'System Update' apt-get update echo 'Update completed' apt-get install libssl-dev git-core pkg-config build-essential curl # Clone Node.js echo 'Clone Node.js' cd /usr/src git clone https://github.com/joyent/node echo 'Node.js clone completed' # Install Node.js echo 'Install Node.js' cd node ./configure && make && make install echo 'Node.js install completed' # Install Node Package Manager echo 'Install Node Package Manager' curl http://npmjs.org/install.sh | sh echo 'NPM install completed' # Install Forever echo 'Install Forever' npm install forever echo 'Forever install completed' # Install Cloud9IDE echo 'Install Cloud9IDE' git clone git://github.com/ajaxorg/cloud9.git echo 'Cloud9IDE install completed' # Install MongoDB echo 'Install MongoDB' sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 sudo apt-get update sudo apt-get install mongodb-10gen echo 'MongoDB install completed.'安装方法:$ cd ~/ $ nano -w node.sh把以上代码粘贴到node.sh文件里,ctrl+o 保存,ctrl+x 退出nano。如果你没有安装nano,请google一下安装吧。然后执行脚本:$ chmod a+x node.sh && sudo ./node.sh如果网速足够快,一会功夫即可完成安装。等安装完毕,我们来个测试:mkdir node_project cd node_project nano -w server.js粘贴以下著名的代码:var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(1337, "127.0.0.1"); console.log('Server running at http://127.0.0.1:1337/');ctrl+o 保存,ctrl+x 退出nano,尝试跑它 :node server.js在浏览器中打开 :http://127.0.0.1:1337,看到久违的Hello World了吧? -
Lighting Fast CMS - Home
LFC is a Content Management System (CMS) based on widely used software: Python, Django and jQuery. It is easy to use, easy to customize, fast, free and open source. -
Django | Contributing to Django | Django documentation
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. -
What is a reusable app? — django-reusable-app-docs v0.1.0 documentation
-
Установка GeoDjango, PostgreSQL 9, PostGIS под Ubuntu/CentOS | proft.me
-
How to Speed up Your Django Sites with NginX, Memcached, and django-compress | Code Spatter
-
Django: Using The Permission System - Standard Deviations
-
Pinax
-
Django Admin Snippets | Chicago Django/Python Blog - Imaginary Landscape Blog | Chicago Django and Python Web Development
-
Django Packages : django reusable apps, sites and tools directory
-
kennethlove/Banana-Py - GitHub
BananaPy provides you with a way to authenticate your Django application with MailChimp's new OAuth2 service. -
kennethlove/Banana-Py - GitHub
BananaPy provides you with a way to authenticate your Django application with MailChimp's new OAuth2 service. -
The Dusty Programmer: Beginners Guide : pip and virtualenv
-
django-hoptoad / Steve Losh
report django exceptions to hoptoad -
dgouldin/django-modernizr - GitHub
-
wgen/pep8 - GitHub
Tests python for PEP 8 style conventions. Thanks, Rolo! -
Kuhl.IT: Ajax file uploads and CSRF (in Django 1.3, or possibly other frameworks)
post data if False, uploaded has been submitted via the basic form submission and -
OpenBlock | OpenBlock home
OpenLayers -
pdb: Using the Python debugger in Django - Minutiæ by Mike Tigas
-
newsapps/beeswithmachineguns - GitHub
A utility for arming (creating) many bees (micro EC2 instances) to attack (load test) targets (web applications).