Django Round-Up #39

Django 1.9 release candidate 1 released

Last month, saw the release of 1.9 RC1 (now official). It’s the first official non-LTS release since the new release process was formalized.

Bugfix release issued: 1.8.6

1.8.6 fixes a handful of bugs found in the 1.8 branch.

Security releases issued: 1.9rc2, 1.8.7, 1.7.11

Fixes a rather obscure issue that could be exploited if a non-trusted user is able to edit templates or pass values to the date filter.

Introducing the DSF’s Director of Advancement

Adrienne Lowe joins Django Fellow Tim Graham as the second paid position at the Django Software Foundation. She will be tasked with leading the fundraising efforts.

High Performance Django

High Performance Django is the book we wish we had when we got started. It gives you a repeatable blueprint for building and deploying fast, scalable Django sites. Pick up a copy today →

Django Under the Hood Videos

Videos from Django Under the Hood are online as well as Reinout van Rees’ always excellent talk summaries.

Refactoring Search from Django App to Microservice

The trials and tribulations of breaking search functionality out of Django/Haystack and into it’s own service.

Scaling Django: Breaking out not breaking up

A great example of breaking a “hotspot” in a Django project out into a more efficient stand-alone endpoint.

How To Create Installable, Reusable Django Packages

Using the cookiecutter to quickly create Django packages ready for submission to PyPI.

How to fix database race conditions in Django views

One technique to make database transactions atomic. I just ran into this one on a client site today!

Optimizing slow Django REST Framework performance

Like the ORM, it’s easy to pile on queries when naively using DRF. This post shows you how to optimize nested DRF responses.

Getting Started with Django REST Framework (DRF) and AngularJS (Part 1)

Building up a Django/Angular project from scratch. This post primarily focuses on getting the initial structure right.

Setting Up a BDD Stack on a Django Application

Testing Django applicaitons using Behavior-Driven Development style tests written as natural language user scenarios.

Single Django codebase with multiple sites

Plugging in all the pieces to get a multi-site Django project running in production.

When you shouldn’t use the Django admin

The Django admin is extremely easy to setup, but don’t get lulled into using it for everything. There are many scenarios where it is not the best choice.

Django Deployment made simple!

Simple may be a bit of a stretch (manual deployments require many steps), but this is a thorough set of instructions for setting up a server with Postgres, uWSGI, and Nginx for hosting multiple Django sites.

Installing Django on IIS: A Step-by-Step Tutorial

While Linux is the most common OS for deploying Django, it will work just fine on Windows too. This post shows you how to set it up as a FastCGI site within Window’s web server, IIS.

Upstream Caching: A Django Developer Crash Course

An introduction to caching including where and when it is most effective.

Introduction to real-time web with Django

Django doesn’t have real-time server push functionality baked-in (yet). In the meantime, it isn’t too difficult to set it up yourself. This post shows you how both via a third-party service and a simple Python websocket server.

Faster Testing with RAM Drives

Fast tests are a good thing. Moving your test database to a RAM drive can make your tests faster.

Django’s model save vs. full_clean

Django’s model validation may not work the way you think. See the differences between create, save, and full_clean.

Deploying Python 3, Django, PostgreSQL to AWS Elastic Beanstalk

Elastic Beanstalk is a nice middleground between a PaaS like Heroku and manually setting up a VPS.

Wrangling Django ArrayField Migrations

Using Django migrations to create array fields in Postgres.

New & Updated Packages

Django Jobs