Jan. 31, 2006 » django on Jacob Kaplan-Moss » [Archived Version]
Here’s a simple class for a template tag that caches its output (with apologies to Chris Parnell and Andy Samberg): from django.core import template from django.core.cache import cache from django.conf.settings import DEBUG class CachedNode(template.Node): """ Cached template node. Subclasses should define the methods get_cache_key() and get_content() instead of the standard render() method. Subclasses may also define the class attribute cache_timeout to override the default cache timeout…
Read MoreJan. 27, 2006 » django on Jacob Kaplan-Moss » [Archived Version]
Inspired by Guido van Rossum’s plea to be taught web frameworks here are (in no particular order) ten reasons why he — and you — should use Django. 1. Django works — right now Don’t be fooled by the fact that Django’s first release was in July. It’s been under heavy use for over two years, and I’m confident saying it has no show-stopping bugs. I’m tired of hearing that that SomeAwesomeFramework™ will be “great when it’s finished”.
Read MoreJan. 5, 2006 » django on Jacob Kaplan-Moss » [Archived Version]
Yes, the Snakes and Rubies videos are now online. No, they’re not perfect. No, I’m not going to wait for FCP to re-render any more. I’ll write a post-mortem after I’ve gotten some sleep; now go watch Adrian kick major ass.
Read MoreDec. 19, 2005 » django on Jacob Kaplan-Moss » [Archived Version]
After hearing some rave reviews of Dojo on django-dev, I finally got around to checking it out today. Here are my thoughts (with an obvious focus towards) using Dojo with Django). The good Dojo is extremely powerful. With very little code I was able to make a really nice drag-and-drop reorderable table, complete with nice zebra striping and add/remove row buttons. (Wilson and I are working on a new kick-ass interface for Django’s “edit_inline” admin views, if anyone cares.
Read MoreDec. 12, 2005 » django on Jacob Kaplan-Moss » [Archived Version]
Django handles lots of traffic with ease; Django sites have survived slashdottings, farkings, and more. Here are some notes on how we tweak our servers to get that type of high performance. Use a separate media server Django deliberately doesn’t serve media for you, and it’s designed that way to save you from yourself. If you try to serve media from the same Apache instance that’s serving Django, you’re going to absolutely kill performance.
Read MoreDec. 5, 2005 » django on Jacob Kaplan-Moss » [Archived Version]
One of the questions asked at Snakes & Rubies was about what Django could learn from Rails (and vice versa). Once I finish wrestling Final Cut Pro to the ground you’ll be able to see how Adrian and David answered the question, but in the meantime it got me thinking about some cool features of Rails that are worth ripping off… er… being inspired by: find_or_create convenience methods. Pretty simple, so expect to see a similar method in Django pretty soon.
Read MoreNov. 19, 2005 » Paolo Melchiorre » [Archived Version]
Italian translation of the theme for Wordpress “Pool” released under the GPL license
Read MoreNov. 9, 2005 » Paolo Melchiorre » [Archived Version]
Italian translation of the theme for Wordpress “Bla” released under the GPL license
Read MoreOct. 17, 2005 » Paolo Melchiorre » [Archived Version]
New GNU/Linux distribution and new blog!
Read MoreSept. 29, 2005 » Paolo Melchiorre » [Archived Version]
A post on the first update of my blog
Read More