我正在尝试为Django安装tastypie.我也安装了South.但是当我迁移时,我得到一些奇怪的类型错误.
./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
Run Code Online (Sandbox Code Playgroud)
我查看了迁移0002,甚至没有调用类型!
Ger*_*ert 12
这是最新版本(0.10.0)中的错误.已提交错误报告.https://github.com/toastdriven/django-tastypie/issues/1005.
您可以通过安装以前的版本来修复它:
pip install django-tastypie==0.9.16