摘要: 转载自:http://blog.kevinastone.com/getting-started-with-django-rest-framework-and-angularjs.html A ReSTful API is becoming a standard component of any mo 阅读全文
posted @ 2017-12-09 13:06 极光天际 阅读(802) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.django-rest-framework.org/tutorial/7-schemas-and-client-libraries/ Tutorial 7: Schemas & client libraries A schema is a machine-readabl 阅读全文
posted @ 2017-12-09 13:03 极光天际 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.django-rest-framework.org/tutorial/6-viewsets-and-routers/ Tutorial 6: ViewSets & Routers REST framework includes an abstraction for de 阅读全文
posted @ 2017-12-09 13:02 极光天际 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.django-rest-framework.org/tutorial/5-relationships-and-hyperlinked-apis/ Tutorial 5: Relationships & Hyperlinked APIs At the moment rel 阅读全文
posted @ 2017-12-09 13:01 极光天际 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.django-rest-framework.org/tutorial/3-class-based-views/ Tutorial 3: Class-based Views We can also write our API views using class-based 阅读全文
posted @ 2017-12-09 13:00 极光天际 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/ Tutorial 4: Authentication & Permissions Currently our API doesn't 阅读全文
posted @ 2017-12-09 13:00 极光天际 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.django-rest-framework.org/tutorial/2-requests-and-responses/ Tutorial 2: Requests and Responses From this point we're going to really s 阅读全文
posted @ 2017-12-09 12:59 极光天际 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.django-rest-framework.org/tutorial/1-serialization/#tutorial-1-serialization Tutorial 1: Serialization Introduction This tutorial will 阅读全文
posted @ 2017-12-09 12:58 极光天际 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 教程 1 - Serialization 2 - Requests & Responses 3 - Class-based views 4 - Authentication & permissions 5 - Relationships & hyperlinked APIs 6 - Viewsets 阅读全文
posted @ 2017-12-09 12:57 极光天际 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 首先 angular4 和django 1.11.1交互 有跨域问题 所以先关闭cors 和csrf验证 一.解决跨域问题 cors github django-cors-headers 1)安装corsheaders 1 pip install django-cors-headers 1 pip 阅读全文
posted @ 2017-12-09 12:33 极光天际 阅读(2296) 评论(0) 推荐(0) 编辑