I'm trying to install tastypie for Django. I also have South installed. But when I migrate I get some 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 into the migration 0002 and type isn't even being called!
It's a bug in the latest version (0.10.0
). A bug report has been submitted. https://github.com/toastdriven/django-tastypie/issues/1005.
You can fix it by installing a previous version:
pip install django-tastypie==0.9.16
I had the same issue (in the 0.11.0 version) and I solved it removing 'tastypie' from INSTALLED_APPS (settings.py).
I had the same problem with 0.11.0.
A quick dirty fix is to remove:
from __future__ import unicode_literals
from the migration files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With