How-To

2017


Building a Custom Block Template Tag

Dan Poirier

Building custom tags for Django templates has gotten much easier over the years, with decorators provided that do most of the work when building common, simple kinds of tags.

cover-learning-ask-right-questions-or-people.jpg

Learning to ask the right questions, or people

Dmitriy Chukhin

I ask a lot of questions as a developer. Some of them have been more basic, like ‘How do I import a Python function from one file into another?’, and some more complex, like ‘How should we take an API request and return a dynamically-generated PDF as a response?’

cover-how-to-write-a-bug-report.gif

How to write a bug report

Dan Poirier

Here are some brief thoughts on writing good bug reports in general.

Main elements

There are four crucial elements when writing a bug report:

2016


cover-new-white-paper-shipping-faster-django-team-improvements.jpg

New white paper: "Shipping faster: Django team improvements"

Hao Nguyen

For the past couple months, we’ve been working on a new white paper, “Shipping Faster: Django Team Improvements”. We examined our existing processes, looked at best practices, and considered what has or hasn’t worked across our dozens of simultaneous projects.

2015


AWS load balancers with Django

Dan Poirier

We recently had occasion to reconfigure some of our existing servers to use Amazon Web Services Elastic Load Balancers in front of them. Setting this up isn’t hard, exactly, but there are a lot of moving parts that have to mesh correctly before things start to work, so I thought I’d write down what we did.

Django Logging Configuration: How the Default Settings Interfere with Yours

Dan Poirier

My colleague Vinod recently found the answer on Stack Overflow to something that’s been bugging me for a long time - why do my Django logging configurations so often not do what I think they should?

Webinar: Testing Client-Side Applications with Django

Hao Nguyen

Technical Director Mark Lavin will be hosting a free O’Reilly webinar today at 4PM EST or 1PM PT on Testing Client-Side Applications with Django. Mark says testing is one of the most popular question topics he receives. It’s also a topic near and dear to Caktus’ quality-loving heart. Mark’s last webinar garnered more than 500 viewers, so sign up quick!

2014


Using Amazon S3 to Store your Django Site's Static and Media Files

Dan Poirier

Editor's note: This post was updated in September 2017.

Using Amazon S3 to Store your Django Site's Static and Media Files

Storing your Django site's static and media files on Amazon S3, instead of serving them yourself, can improve site performance. It frees your servers from handling static files themselves, lets you scale your servers easier by keeping media files in a common place, and is a necessary step to using Amazon CloudFront as a Content Delivery Network (CDN).

Webcast: Creating Enriching Web Applications with Django and Backbone.js

Hao Nguyen

Update: The live webcast is now available at O’Reilly Media

Our technical director, Mark Lavin, will be giving a tutorial on Django and Backbone.js during a free webcast for O’Reilly Media tomorrow, November 6th, 1pm EST. There will be demos and a discussion of common stumbling blocks when building rich client apps.

Celery in Production

Dan Poirier

(Thanks to Mark Lavin for significant contributions to this post.)

In a previous post, we introduced using Celery to schedule tasks.

In this post, we address things you might need to consider when planning how to deploy Celery in production.