我正在为Django安装tastype。我也有南装。但是当我迁移时,我得到一些奇怪的类型错误。在
./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
我查看了迁移0002,类型甚至没有被调用!在
我也遇到了同样的问题(在0.11.0版本中),我解决了从已安装的应用程序中删除“tastype”的问题(设置.py). 在
这是最新版本(
0.10.0
)中的一个bug。已提交错误报告。https://github.com/toastdriven/django-tastypie/issues/1005。在您可以通过安装以前的版本进行修复:
pip install django-tastypie==0.9.16
我对0.11.0也有同样的问题。在
一个快速的补救方法是删除:
从迁移文件中。在
相关问题 更多 >
编程相关推荐