I'm going to DjangoCon!

Posted by: barbara | Date: Jul 31, 2008 | Updated: Sep 09, 2008 | Category: Django DjangoCon
In like Flynn
    "To be quickly and/or emphatically successful."
I was up at 4-fricking-30 this morning, on the off chance that I might be able to get in on the first round of DjangoCon tickets to be released into the wild. I didn't have high hopes - I figured ...

Read More

Pagination: it's not pretty, but it works

Posted by: barbara | Date: Jul 30, 2008 | Updated: Sep 09, 2008 | Category: Django
I wanted a simpler solution than django-pagination. Django-pagination looks easy to implement, particularly thanks to Eric Florenzano's stellar screencast, but the actual installation process isn't very well-documented. Besides, I wanted something that didn't require installing a lot of outside code, and I sure don't want to have ...

Read More

That's right, the women are smarter

Posted by: barbara | Date: Jul 28, 2008 | Updated: Jul 28, 2008 | Category: Girl Geeks
Girls Close the "Math Gap" [Alternet] Gender Similarities Characterize Math Performance [Science Magazine] Girls Bridge Gender Divide in Math [ABC News]

Read More

Oh Django, how do I love thee? Let me count the joins ...

Posted by: barbara | Date: Jul 25, 2008 | Updated: Sep 09, 2008 | Category: Django
Let's say I have three simple models - news articles, their categories, and the table that defines which articles are in which categories:
 class Article(models.Model): title = models.CharField(max_length=40, unique=True) body = models.TextField() class Category(models.Model): name = models.CharField(max_length=40, unique=True) class ArticleCategory(models.Model): article = models.ForeignKey(Article) category = models.ForeignKey(Category) 
To get ...

Read More

Newforms-admin

Posted by: barbara | Date: Jul 23, 2008 | Updated: Sep 09, 2008 | Category: Django
I wish I could say I were more excited about yesterday's merge of the newforms-admin branch into the Django trunk. Of course, I think it's great - all those inner Admin classes in my models never really made sense as a way to hook models into the admin site. But ...

Read More