我按照前面提到的步骤安装了drfdocs
。但是我得到了cannot import name import_string
。在
下面是stacktrace:
ImportError at /
cannot import name import_string
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.6.5
Exception Type: ImportError
Exception Value:
cannot import name import_string
Exception Location: /usr/local/lib/python2.7/dist-packages/rest_framework_docs/api_docs.py in <module>, line 4
Python Executable: /usr/bin/python
我正在使用Django 1.6.5
和{
下面是我的系统上安装的pip packages
的列表:
我确信这是由于软件包版本之间的任何冲突造成的。任何帮助都将不胜感激。在
这是由于}的版本冲突。将我的版本从
drfdocs
与{drfdocs==0.0.11
降级到drfdocs==0.0.6
修复了这个问题。在相关问题 更多 >
编程相关推荐