Joaquim Rocha: This Week In Django

Django Community - Saturday, October 04, 2008 @ 04:02 PM
If you’re a Django guy or are wanting to be, you have to visit This Week In Django (TWID) website. TWID started out as being a weekly podcast by Michael Trier but evolved to be a complete website full of Django resources to either help you give the first steps or keep you informed. Go on, download [...]

John DeRosa: Django -> Plone: Portlets, Viewlets, Zcatalog, Aspects

Django Community - Saturday, October 04, 2008 @ 03:02 PM
[Another in a series of posts about moving from Django to Plone. I'm a Plone/Zope newbie writing about my bafflements and enlightenments as they happen. Some of my opinions are certainly wrong. I'm writing this in the expectation that the history of my meandering learning path may be useful, or at least entertaining, to future Plone newbies. If [...]

This Week in Django: Django From the Ground Up: Episode 10

Django Community - Saturday, October 04, 2008 @ 06:00 AM

In this episode we use Django's generic views to create a list of all the new users, write a performance-oriented inclusion tag, and write some code that lets users follow their friends from that page as well. All of the code that we go over this week is the latest code from GitHub.

Generic Views

One thing that we really haven't used up until this point is generic views. One reason for that is because they never really fit the use case until now, but another reason was simply to demonstrate how to do things the "hard way" first. My favorite generic view is definitely the django.views.generic.list_detail.object_list view, which is the one that we use here. For more information on generic views and how you can use them, visit the documentation on the subject (which is really good).

Pagination is handled by a custom application called django-pagination. Thankfully for me, I was the one who wrote django-pagination in the first place, but that doesn't really help you all out. That's why I've recorded a whole screencast talking about just how to set up django-pagination and use it with your projects. You can find that screencast on my blog entry about the subject.

friends_for_user and dict_entry_for_item

Why go through all this hassle? Well, as we learned in episode 7, there can be a pretty big performance tradeoff when writing templatetags that operate on just one model instance. When we do things this way--querying for a batch of items by friends_for_user, and picking out individual items with dict_entry_for_item--we bypass that performance tradeoff, without sacrificing a lot of convenience (in my opinion, of course).

Ivan Sagalaev: Vooid

Django Community - Saturday, October 04, 2008 @ 02:00 AM
На прошедшем минибаре для веб-программистов я кратко рассказывал про то, как хорошо, что проект в Джанго строится из отдельных приложений. Не знаю, насколько это было полезно всем остальным, но лично меня это окончательно сподвигло на то, что надо делиться! SoftwareManiacs.Org состоит из нескольких приложений, и пару из них вполне можно выложить в мир — вдруг [...]

Nova Scotia

Project.ioni.st - Saturday, October 04, 2008 @ 01:46 AM
Fast-boy-in-nova-scotia

Nova Scotia

In terms of academic browni...

Project.ioni.st - Saturday, October 04, 2008 @ 01:46 AM
In terms of academic brownie points, you don’t get many unfortunately.

Simon Peyton-Jones

paralanguage: The set of no...

Project.ioni.st - Saturday, October 04, 2008 @ 01:46 AM
par•a•lan•guage
[par-uh-lang-gwij]noun
The set of nonphonemic properties of speech, such as speaking tempo, vocal pitch, and intonational contours, that can be used to communicate attitudes or other shades of meaning.