{"id":50002,"date":"2022-12-11T06:54:24","date_gmt":"2023-12-21T18:14:20","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/"},"modified":"2024-04-29T04:41:59","modified_gmt":"2024-04-28T20:41:59","slug":"%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/","title":{"rendered":"[\u5907\u5fd8\u5f55] \u5230\u4f7f\u7528 Django \u6784\u5efa API \u670d\u52a1\u5668\u7684\u8fc7\u7a0b"},"content":{"rendered":"<h2>\u8bf7\u6ce8\u610f\u3002<\/h2>\n<p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u53ea\u8bb0\u5f55\u4e86\u5b66\u4e60\u6b65\u9aa4\u3002<br \/>\n\u56e0\u6b64\uff0c\u8bf7\u4e0d\u8981\u671f\u5f85\u6280\u672f\u5185\u5bb9\u3002<\/p>\n<h2>\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528 Django\uff1f<\/h2>\n<p>\u5927\u591a\u6570\u673a\u5668\u5b66\u4e60\u5de5\u5177\u5305\u90fd\u662f\u7528Python\u7f16\u5199\u7684\u3002\u800c\u4e14\uff0c\u5f53\u6211\u4eec\u51c6\u5907\u5c06\u5176\u96c6\u6210\u5230Web\u5e94\u7528\u65f6\uff0c\u5927\u90e8\u5206\u9879\u76ee\u90fd\u662f\u9009\u62e9Rails\u3001Go\u6216Java\uff08Scala\uff09\u8fd9\u4e09\u8005\u4e4b\u4e00\u3002\u56e0\u4e3a\u5728\u5229\u7528\u673a\u5668\u5b66\u4e60\u7684\u6210\u679c\u9636\u6bb5\uff0c\u5f80\u5f80\u5e76\u4e0d\u9700\u8981\u5904\u7406\u5927\u91cf\u7684\u6570\u636e\u6216\u590d\u6742\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u6240\u4ee5\u53ea\u8981\u80fd\u591f\u4f7f\u7528Python\u8f7b\u677e\u521b\u5efaWeb API\u7684\u63a5\u53e3\u5c31\u53ef\u4ee5\u4e86\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u5148\u6765\u5b66\u4e60\u4e00\u4e0bFlask\u6216Django\u5427\u3002\u800c\u4e14\uff0c\u65e2\u7136\u8981\u505a\uff0c\u4e0d\u59a8\u8bd5\u8bd5\u7528Django REST framework\u3002<\/p>\n<h2>\u52c9\u5f3a\u7684\u6b65\u9aa4 de b\u00f9<\/h2>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u67e5\u770b Django \u6587\u6863<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5c1d\u8bd5\u5b8c\u6210 Django \u6559\u7a0b<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5b8c\u6210\u521d\u6b21\u521b\u5efa Django \u5e94\u7528\u7684\u6b65\u9aa4 1-7<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5c1d\u8bd5\u5b8c\u6210 Django REST framework \u7684\u6559\u7a0b<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u5b8c\u6210\u6559\u7a0b\u7684\u6b65\u9aa4 1-7<\/ol>\n<h2>\u6211\u7684\u611f\u53d7<\/h2>\n<p>\u53ef\u80fd\u8fd9\u662fDjango\u7684\u98ce\u683c\u4e4b\u4e00<br \/>\n\u6559\u7a0b\u5e76\u4e0d\u7acb\u5373\u6d89\u53ca\u9ad8\u7ea7\u5185\u5bb9<br \/>\n\u800c\u662f\u91c7\u7528\u9010\u6b65\u63a8\u8fdb\u7684\u65b9\u5f0f<br \/>\n\u8003\u8651\u5f97\u6bd4\u6211\u60f3\u8c61\u4e2d\u8981\u6df1\u5165\uff0c\u611f\u89c9\u5f88\u597d\u3002<\/p>\n<h2>\u8bf7\u63d0\u4f9b\u53c2\u8003\u94fe\u63a5\u3002<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.djangoproject.com\/ja\/<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">http:\/\/www.django-rest-framework.org\/<\/ul>\n<h2>\u9002\u7528\u4e8e\u90a3\u4e9b\u771f\u6b63\u60f3\u52aa\u529b\u5b9e\u65bd\u7684\u4eba<\/h2>\n<ul class=\"post-ul\">https:\/\/qiita.com\/kimihiro_n\/items\/86e0a9e619720e57ecd8<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6ce8\u610f\u3002 \u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u53ea\u8bb0\u5f55\u4e86\u5b66\u4e60\u6b65\u9aa4\u3002 \u56e0\u6b64\uff0c\u8bf7\u4e0d\u8981\u671f\u5f85\u6280\u672f\u5185\u5bb9\u3002 \u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528 Django\uff1f \u5927\u591a\u6570\u673a [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-50002","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\u5907\u5fd8\u5f55] \u5230\u4f7f\u7528 Django \u6784\u5efa API \u670d\u52a1\u5668\u7684\u8fc7\u7a0b - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5907\u5fd8\u5f55-\u5230\u4f7f\u7528-django-\u6784\u5efa-api-\u670d\u52a1\u5668\u7684\u8fc7\u7a0b\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u5907\u5fd8\u5f55] \u5230\u4f7f\u7528 Django \u6784\u5efa API \u670d\u52a1\u5668\u7684\u8fc7\u7a0b\" \/>\n<meta property=\"og:description\" content=\"\u8bf7\u6ce8\u610f\u3002 \u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u53ea\u8bb0\u5f55\u4e86\u5b66\u4e60\u6b65\u9aa4\u3002 \u56e0\u6b64\uff0c\u8bf7\u4e0d\u8981\u671f\u5f85\u6280\u672f\u5185\u5bb9\u3002 \u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528 Django\uff1f \u5927\u591a\u6570\u673a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5907\u5fd8\u5f55-\u5230\u4f7f\u7528-django-\u6784\u5efa-api-\u670d\u52a1\u5668\u7684\u8fc7\u7a0b\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-21T18:14:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T20:41:59+00:00\" \/>\n<meta name=\"author\" content=\"\u6e05, \u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u5b87\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/\",\"name\":\"[\u5907\u5fd8\u5f55] \u5230\u4f7f\u7528 Django \u6784\u5efa API \u670d\u52a1\u5668\u7684\u8fc7\u7a0b - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-12-21T18:14:20+00:00\",\"dateModified\":\"2024-04-28T20:41:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\u5907\u5fd8\u5f55] \u5230\u4f7f\u7528 Django \u6784\u5efa API \u670d\u52a1\u5668\u7684\u8fc7\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\",\"name\":\"\u6e05, \u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"[\u5907\u5fd8\u5f55] \u5230\u4f7f\u7528 Django \u6784\u5efa API \u670d\u52a1\u5668\u7684\u8fc7\u7a0b - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5907\u5fd8\u5f55-\u5230\u4f7f\u7528-django-\u6784\u5efa-api-\u670d\u52a1\u5668\u7684\u8fc7\u7a0b\/","og_locale":"zh_CN","og_type":"article","og_title":"[\u5907\u5fd8\u5f55] \u5230\u4f7f\u7528 Django \u6784\u5efa API \u670d\u52a1\u5668\u7684\u8fc7\u7a0b","og_description":"\u8bf7\u6ce8\u610f\u3002 \u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u53ea\u8bb0\u5f55\u4e86\u5b66\u4e60\u6b65\u9aa4\u3002 \u56e0\u6b64\uff0c\u8bf7\u4e0d\u8981\u671f\u5f85\u6280\u672f\u5185\u5bb9\u3002 \u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528 Django\uff1f \u5927\u591a\u6570\u673a [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5907\u5fd8\u5f55-\u5230\u4f7f\u7528-django-\u6784\u5efa-api-\u670d\u52a1\u5668\u7684\u8fc7\u7a0b\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-21T18:14:20+00:00","article_modified_time":"2024-04-28T20:41:59+00:00","author":"\u6e05, \u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u5b87"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/","name":"[\u5907\u5fd8\u5f55] \u5230\u4f7f\u7528 Django \u6784\u5efa API \u670d\u52a1\u5668\u7684\u8fc7\u7a0b - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-12-21T18:14:20+00:00","dateModified":"2024-04-28T20:41:59+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"[\u5907\u5fd8\u5f55] \u5230\u4f7f\u7528 Django \u6784\u5efa API \u670d\u52a1\u5668\u7684\u8fc7\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e","name":"\u6e05, \u5b87","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","caption":"\u6e05, \u5b87"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95-%e5%88%b0%e4%bd%bf%e7%94%a8-django-%e6%9e%84%e5%bb%ba-api-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/50002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=50002"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/50002\/revisions"}],"predecessor-version":[{"id":82578,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/50002\/revisions\/82578"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=50002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=50002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=50002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}