cannot import name APIView

qq_emdlv1b5 Django 开发——API ... 最后由 极客学院-媛儿 于2016年01月29日回复

  • 1 回答
  • 1.9k 浏览

图像 2.png

ImportError at /lesson/book/

cannot import name APIView

Request Method:GET
Request URL:http://localhost:8000/lesson/book/
Django Version:1.7.11
Exception Type:ImportError
Exception Value:cannot import name APIView
Exception Location:D:MyProjects8CreateAPIlessonviews.py in , line 3
Python Executable:D:Pythoninstallpython.exe
Python Version:2.7.11
Python Path:['D:MyProjects8CreateAPI', 'D:MyProjects8CreateAPI', 'D:PythoninstallDLLs', 'D:Pythoninstalllib', 'D:Pythoninstallliblib-tk',