Blog

Showing 16 to 20 of 62 blog posts in the technical category.

August 7, 2013
by Tobias McNulty
0 comments

Migrating to a Custom User Model in Django

The new custom user model configuration that arrived in Django makes it relatively straightforward to swap in your own model for the Django user model. In most cases, Django's built-in User model works just fine, but there are times when certain limitations (such as the length of the email ...

Continue reading →

July 17, 2013
by Mark Lavin
0 comments

Factory Boy as an Alternative to Django Testing Fixtures

When testing a Django application you often need to populate the test database with some sample data. The standard Django TestCase has support for fixture loading but there are a number of problems with using fixtures:

  • First, they must be updated each time your schema changes.
  • Second, they force you ...

Continue reading →

June 26, 2013
by Mark Lavin
0 comments

MEDIA_ROOT and Django Tests

If you’ve ever written a test for a view or model with associated uploaded files you might have noticed a small problem with those files hanging around after the tests are complete. Since version 1.3, Django won’t delete the files associated with your model instances when they ...

Continue reading →

June 12, 2013
by Dan Poirier
0 comments

Making your Django app more pluggable

This blog post is about ways of doing things in your Django app, and pitfalls to avoid, so your app is easier to plug in to other sites.

Introduction

One of the most enticing promises of Django is that you’ll be able to add features to your site by ...

Continue reading →

April 25, 2013
by Mark Lavin
0 comments

Managing Django Translations with Transifex

We manage a number of open source Django apps here at Caktus. While many of us here are proficient in a number of programming languages, the same can’t be said for our ability to read or write in languages other than English. The Django community is global and we ...

Continue reading →