Monthly Archives: September 2014

Tastypie and migrations

For anyone else who’s run into this: the latest TastyPie assumes you’re running Django with built-in migrations. If you’re not (like me), you’ll get an error

from django.db import models, migrations
ImportError: cannot import name migrations

Simple fix: in /lib/python2.7/site-packages/tastypie/, rename “migrations” to something else (I used “django_migrations”) and “south_migrations” to “migrations”.