Debug Python logging issues

P introspection with logging_tree

April 26, 2013

Have you ever wondered where all your logging information is coming from (or even where it's going to, or possibly why it's all duplicated)? If so, then logging_tree is your saviour.

I came across the logging_tree library recently as I was following a specific issue in the urllib3 library, regarding the proliferation of INFO . . .

Read More

Running rq in sync mode

April 26, 2013

A run of pickling problems with our tests has required us to delve into the rq and django-rq source code. If you run rq in synchronous mode, queued functions are run directly by the enqueue method, but redis is still used to store 'job' information.

We use the redis -> rq -> django-rq chain to run all our async . . .

Read More

Turbo deployments with Heroku 'Preboot'

April 21, 2013

Heroku's deployment model has always had a single point of frustration - the requirement to take the site offline, if only for a couple of minutes. In certain circumstances this is solved by the 'preboot' labs feature.

I love Heroku's simple git deployment model, and having lived with it for almost a year, I can't . . .

Read More

Trello + Gitflow

Efficient workflow and task management using Trello

April 16, 2013

We've recently taken on a third developer (well, second developer, but I'm also counting myself), and our ad hoc workflow took a battering. So we upgraded.

As I have blogged previously, we use gitflow as our workflow, and as I may have mentioned, we use Trello to track what we're actually developing. When it was just . . .

Read More

What's in a (HTTP) status code?

April 02, 2013

Last week I finally managed to provoke our tech lead into using the 'F-word' in conversation. The trigger for this outburst was none other than HTTP status codes, and my desire to invent a new one. This was clearly beyond the pail.

I have since retreated from my original stance (a custom status code), but have committed a . . .

Read More

Contributing to YunoJuno

March 26, 2013

This is the opening doc that we share with new team members, outlining what
we expect of them in terms of coding standards and git etiquette. It's not
a lot more than 'be a good citizen', but thought some others may find it
interesting.

First off, welcome aboard. This isn't a public project [ clearly this . . .

Read More

Packaging Django apps

Packaging Django-aware libraries for distribution

March 07, 2013

Packaging apps so that they can be tested within a django context, but without having to add them to an existing django project is pretty easy to to, but takes a bit more work than a standalone application.

We recently pushed our django-errordite and python-errordite apps to PyPI, and as part of that process I was keen to ensure that . . .

Read More

Archive
   Subscribe by email and never miss a post.