Featured
A Plan Comes Together
Andrew Godwin merged his migrations branch into Django master. This means, barring some horrible problem, we’ll be seeing it in the 1.7 release of Django. Congratulations to Andrew on his monumental effort and getting this common Django complaint resolved.
Classy Class Based Views
We’ve featured this site in a past newsletter, but since then it has been updated and now even includes a hierarchical diagram of each view. This documentation is critical for anybody moving beyond the basics with CBV. On the other hand, Adrian Holovaty recommends staying away from CBV altogether .
Ada Initiative Fundraiser
Not really Django related (although Jacob Kaplan-Moss just completed a $5k matching donation campaign ), but something that is important to our community. The Ada Initiative supports women in open technology and culture and is only $5k off of their fundraising goal for the year. Join us in helping them make it to $100k!
Web Design Tips & News Right to Your Inbox
Web Regularly is a web design newsletter curated by Lincoln Loop, the team behind Django Round-up. It’s an easy way to learn new techniques, stay up with JavaScript, HTML5 and CSS3, and sharpen your skills on the front-end. Sign up today →
Links of Interest
New Django Round-up Podcasts
Two more Django Round-up podcasts are out. These feature Julia Elman , designer and Django developer, and Steve Holden , organizer of DjangoCon US (which kicks-off next week).
Building a Hacker News clone in Django - Part 4
Arun Ravindran’s fourth and final installment in the series. This one covering AJAX, Mixins and writing a ranking algorithm. If you’ve enjoyed Arun’s series, consider checking out his upcoming book, Building a Social News Site in Django .
Model Mixin to Save Only Changed Fields
By default, Django’s ORM saves every field on a model on every save. There are certain times when that isn’t desirable. This little snippet gives you a model which only saves the fields that have changed back to the database.
Using Django with MVC JavaScript Frameworks
A talk recorded from Boston’s Django Meetup group recently. Embedly CEO and co-founder, Sean Creeley, explains how to plug Ember.js into a Django site and what they learned in the process of doing it at Embedly.
Raspberry IO Open Sourced
The source code for raspberry.io , a site funded by the PSF to help people learn about Python and the Raspberry Pi micro-computer was recently open-sourced by Caktus Group. The code is up on GitHub and is a nice example of how to build a site with Django (and the Mezzanine CMS).
Control Your Laptop with Android, Python, Twisted, and Django
A fun little side project connecting Android to D-Bus on a Linux laptop to control it’s music player. It’s cobbled together with lots of different bits including a Django web server and a communication bus built using Twisted.
Building an Activity Feed with Eventlog
The latest GoDjango screencast, shows you how to build the ubiquitous activity feed using the open source eventlog app. If you like Buddy’s screencasts, help support him by subscribing for a “pro” account .
Asynchronous Testing with Django and PyVows
PyVows is a port of the popular Node.js testing framework, vows . This post describes how to plug PyVows into your Django site and use it to parallelize Selenium tests, which can be excruciatingly slow to run sequentially.
Testing in Django (part 2) - Model Mommy vs. Django Testing Fixtures
Using the model_mommy package to fake data for your test suite and why you’d want to use it instead of the built in fixtures functionality.
Django-compressor, LESS, and Collectstatic
A quick tip on how to get collectstatic to run whenever LESS files are saved in development courtesy of the the awesome Python package watchdog . This technique works great to just compile your LESS into CSS (without collectstatic) too.
Practical HTTP Host header attacks
There’s been a couple of Django security releases around Host header issues recently. If you’ve bumped into the ALLOWED_HOSTS setting, this is the reason. This post shows you the vulnerability and how it can be exploited in detail.
New & Updated Packages
- django-model-urls Simpler URL lookups for single model object pages.
- django-overextends Adds the ability simultaneously override and extend templates from other reusable apps.
- tango Faster, simpler Django content management.
- django-rated A rate limiting middleware for Django.