随笔分类 - angular4.0与Django项目
摘要:转载自:http://blog.kevinastone.com/getting-started-with-django-rest-framework-and-angularjs.html A ReSTful API is becoming a standard component of any mo
阅读全文
摘要:转载自:http://www.django-rest-framework.org/tutorial/7-schemas-and-client-libraries/ Tutorial 7: Schemas & client libraries A schema is a machine-readabl
阅读全文
摘要:转载自:http://www.django-rest-framework.org/tutorial/6-viewsets-and-routers/ Tutorial 6: ViewSets & Routers REST framework includes an abstraction for de
阅读全文
摘要:转载自:http://www.django-rest-framework.org/tutorial/5-relationships-and-hyperlinked-apis/ Tutorial 5: Relationships & Hyperlinked APIs At the moment rel
阅读全文
摘要:转载自: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
阅读全文
摘要:转载自:http://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/ Tutorial 4: Authentication & Permissions Currently our API doesn't
阅读全文
摘要:转载自: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
阅读全文
摘要:教程 1 - Serialization 2 - Requests & Responses 3 - Class-based views 4 - Authentication & permissions 5 - Relationships & hyperlinked APIs 6 - Viewsets
阅读全文
摘要:首先 angular4 和django 1.11.1交互 有跨域问题 所以先关闭cors 和csrf验证 一.解决跨域问题 cors github django-cors-headers 1)安装corsheaders 1 pip install django-cors-headers 1 pip
阅读全文

浙公网安备 33010602011771号