ImportError at /users/
No module named http_client Request Method: GET Request URL: http://127.0.0.1:8000/users/?format=json Django Version: 1.6.1 Exception Type: ImportError Exception Value: No module named http_client
安装 pip install djangorestframework后按照网上部署rest_framework ,发现报这个错,后经过仔细研究(猜了半天)发现是django 版本和 djangorestframework 版本不符导致的错误解决办法:
1. 安装 最新版本的django 和最新版本的 djangorestframework
2. 安装 django 1.6.1 和 djangoresetframework 2.4.5 测试没问题