Blog

Showing 1 to 5 of 6 blog posts written by Mark Lavin.

July 7, 2014
by Mark Lavin
0 comments

Tips for Upgrading Django

From time to time we inherit code bases running outdated versions of Django and part of our work is to get them running a stable and secure version. In the past year we've done upgrades from versions as old as 1.0 and we've learned a few lessons ...

Continue reading →

October 2, 2013
by Mark Lavin
0 comments

Skipping Test DB Creation

We are always looking for ways to make our tests run faster. That means writing tests which don't preform I/O (DB reads/writes, disk reads/writes) when possible. Django has a collection of TestCase subclasses for different use cases. The common TestCase handles the fixture loading and the ...

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 →

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 →

Newer | Older