Django Round-Up #29

Django 1.8 alpha 1 released

The next version of Django hit alpha stage and should be hitting beta this week. This is another big release, including two crowdfunded initiatives, Marc Tamlyn’s Postgres contrib module and Aymeric Augustin’s multiple template engine project.

Bugfix and Security releases

January saw two rounds of bugfix releases covering versions 1.4-1.7 and a security release for 1.4, 1.6, and 1.7. The second bugfix release resolving a minor issue with the first in 1.4 and 1.7.

Support the Django Software Foundation | Django

By any measurement, Django’s pilot fellowship program has been a huge success. The DSF is turning to Django users to fund the program moving forward with a targeted fundraiser. It met its initial goal and is very close to reaching its stretch goal.

Security Advisory: Pillow security release

Do you accept image uploads from untrusted users? Make sure to upgrade Pillow to avoid being susceptible to a DoS attack.

Django Expert Sessions

Have a tough problem on your Django project? Sometimes it’s not code you need, but just sound advice. Save time and make good technical decisions by leveraging our years of experience. Book a session today →

Multiple Template Engines Final Update

Aymeric’s final update on the multiple template project, including what worked and what didn’t.

Integrating Front-end Tools with Your Django Project

As the front-end toolkit gets more mature, some of the traditional ways we’ve handled static files in Django projects begin to break down. Here’s how we marry the two toolkits at Lincoln Loop.

Django Logging Configuration: How the Default Settings Interfere with Yours

Python’s logging module (used by Django) isn’t the most user friendly module to work with. In this post, Dan Poirier from Caktus explains that the disable_existing_loggers setting may not be doing what you think it is.

Is Django Too Heavy?

A common argument against using Django is that it is too big and a “lightweight” framework like Flask is easier. Here’s a few counterpoints from the author of the django-jenkins library.

Introducing Metamon for Kickstarting Django Development

Metamon is a reusable set of Ansible playbooks for Django deployment from the folks at Tryolabs.

Outside-in TDD and Unit Test Isolation with Python, Django and Selenium - YouTube

A screencast by Harry Percival, the guy who wrote the book on test-driven development in Python (literally), walking you through adding a new feature to an existing website using TDD and “outside-in” development.

Deferred Tasks and Scheduled Jobs with Celery 3.1, Django 1.7 and Redis

A new free GoDjango screencast showing you how to integrate the latest version of Celery into your Django project using Redis as a message broker.

Adding Basic Search to Your Django site

Not all sites need a robust full-text search engine like ElasticSearch. Here’s a simple way to add basic search to a small Django site with just the Django ORM.

Django Resources from Full Stack Python

A nice list of resources to learn more about Django from Matt Makai at Full Stack Python.

Astro Code School

The folks at Caktus Group are setting up a dedicated Django training facility at their HQ in North Carolina. Courses are scheduled to start this spring.

OAuth2 with Django REST Framework

A detailed post on how to swap out DRF’s token authentication for OAuth2.

Combine Two Django Querysets from Different Models

Here’s a quick tip on how to use the Python itertools module to combine two querysets into one iterator.

Coverage.py for Django templates

Did you know the venerable coverage.py can now report your test suite’s coverage of template code? There’s a new plugin, django_coverage_plugin, that will do just that.

Django Unit Test with Patch and MagicMock Example

Mocking is a key component to true “unit” testing. This post shows you how to use the mock library in your Django tests.

Deploying a Django App to AWS Elastic Beanstalk

A detailed walk-through of deploying a Django project via Amazon’s PaaS service, Elastic Beanstalk.

New & Updated Packages

  • django-cacheback Use Celery to refresh your cache asynchronously
  • django-sheets Django templates backed by Google Spreadsheets
  • cleanerversion “Slowly Changing Dimensions Type 2” versioning for Django’s ORM
  • django-slack Slack integration for Django, using the templates to generate messages
  • django-sundial Timezone support for database, form fields and middleware

Django Jobs