Tastypie migration error

I am trying to install tastypie for Django. I also have south. But when I migrate, I get some kind of weird type error.

./manage.py migrate tastypie Running migrations for tastypie: - Migrating forwards to 0002_add_apikey_index. > tastypie:0001_initial TypeError: type() argument 1 must be string, not unicode 

I looked at the 0002 migration, and the type is not even called!

+7
python tastypie
source share
3 answers

This is a bug in the latest version ( 0.10.0 ). An error report has been sent. https://github.com/toastdriven/django-tastypie/issues/1005 .

You can fix this by installing the previous version:

pip install django-tastypie==0.9.16

+12
source share

I had the same problem (in version 0.11.0) and I decided to remove "tastypie" from INSTALLED_APPS (settings.py).

+2
source share

I had the same problem with 0.11.0.

Quick dirty fix:

 from __future__ import unicode_literals 

from migration files.

+1
source share

All Articles