Django:使用“rest_framework_docs”时:“无法导入name import_string”

2024-10-02 10:24:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我按照前面提到的步骤安装了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的列表:

^{pr2}$

我确信这是由于软件包版本之间的任何冲突造成的。任何帮助都将不胜感激。在


Tags: djangonameimportdocsstringrequestpackagesusr

热门问题