{"id":1666,"date":"2019-08-28T20:43:01","date_gmt":"2019-08-28T18:43:01","guid":{"rendered":"https:\/\/myoceane.fr\/?p=1666"},"modified":"2021-12-05T02:51:10","modified_gmt":"2021-12-05T01:51:10","slug":"django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/","title":{"rendered":"[Django] \u7528 Python \u5beb\u7db2\u9801\uff1f"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n\n<p style=\"text-align: justify;\">\u672c\u7bc7\u8981\u4ecb\u7d39\u7684\u662f Django \u9019\u4e00\u500b\u7db2\u9801\u7684 Framework\uff0c\u5982\u679c\u4f60\u60f3\u8981\u7528 Python \u4f86\u5beb\u7db2\u9801\u7684\u8a71\uff0c\u9019\u662f\u4e00\u500b\u5f88\u597d\u7684\u67b6\u69cb\uff01\u7531\u65bc Python \u5df2\u7d93\u662f\u6578\u4e00\u6578\u4e8c\u5e38\u7528\u7684\u8a9e\u8a00\u4e86\uff0c\u5982\u679c\u53ef\u4ee5\u4f7f\u7528 Python \u4f86\u64b0\u5beb\u7db2\u7ad9\u76f8\u5c0d\u65bc PHP\uff0c\u53ef\u4ee5\u6bd4\u8f03\u6709\u67b6\u69cb\u53bb\u5efa\u7acb\u81ea\u5df1\u7684\u7db2\u7ad9\uff0c<a href=\"https:\/\/www.djangosites.org\/\">\u9023\u7d50<\/a>\u5c55\u793a\u5f88\u591a\u5229\u7528 Django \u64b0\u5beb\u51fa\u4f86\u7684\u7db2\u7ad9\u3002<\/p>\n<p style=\"text-align: justify;\">\u4ee5\u4e0b\u662f Django \u7684\u5b98\u7db2\u6559\u5b78\uff1a<\/p>\n\n\n\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https:\/\/docs.djangoproject.com\/en\/2.1\/intro\/tutorial01\/\">Django \u7684\u5b98\u7db2\u6559\u5b78<\/a><\/div>\n\n\n\n<h5>\u5b89\u88dd Python, Django<\/h5>\n<p>\u5b89\u88dd\u5b8c Python \u4e4b\u5f8c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u7684\u6307\u4ee4\u5b89\u88dd Django \u74b0\u5883<\/p>\n<pre class=\"lang:bash\">pip install Django\npip install Django==2.1.11<\/pre>\n<p>\u5099\u8a3b\uff1a\u6ab8\u6aac\u7238\u5f8c\u4f86\u5b89\u88dd\u7684\u662f 2.1.11 \u7248\u672c\uff0c\u4e3b\u8981\u662f\u56e0\u70ba\u5728\u5b89\u88dd\u5b8c 2.2.2 \u4e4b\u5f8c\uff0c\u7121\u6cd5\u6b63\u5e38\u555f\u52d5\u51fa\u73fe\u4ee5\u4e0b\u7684\u932f\u8aa4\u8a0a\u606f\uff1a<\/p>\n<pre class=\"lang:bash\">django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17)<\/pre>\n<p>\u6b63\u78ba\u5b89\u88dd\u5b8c Django \u4e4b\u5f8c\uff0c\u53ef\u4ee5\u5229\u7528\u4ee5\u4e0b\u7684\u6307\u4ee4\u67e5\u770b Django \u7684\u7248\u672c\u6578<\/p>\n<p>&nbsp;<\/p>\n\n\n<h5>\u5275\u5efa\u4e00\u500b\u5c08\u6848<\/h5>\n<p>\u63a5\u4e0b\u4f86\u5728\u6307\u5b9a\u7684\u8cc7\u6599\u593e\u4e2d\uff0c\u5275\u5efa\u4e00\u500b Django \u7684\u5c08\u6848\uff1a<\/p>\n<pre class=\"lang:bash\">cd \/home\/user\/django\ndjango-admin startproject mysite<\/pre>\n<p>\u5728\u65b0\u5275\u7684 mysite \u8cc7\u6599\u593e\u4e2d\u5247\u5305\u542b\u4ee5\u4e0b\u7684\u6a94\u6848\uff1a<\/p>\n<pre class=\"lang:bash\">mysite\/     \n  manage.py     \n  mysite\/         \n    __init__.py         \n    settings.py         \n    urls.py         \n    wsgi.py<\/pre>\n<ul>\n<li>manage.py &#8211; \u5305\u542b\u5f88\u591a\u6307\u4ee4\uff0c\u8b93\u4f7f\u7528\u8005\u53ef\u4ee5\u8ddf\u7db2\u7ad9\u6e9d\u901a\uff0c\u4f8b\u5982\u555f\u52d5\u7b49\u7b49\u3002<\/li>\n<li>mysite\/__init__.py &#8211; \u555f\u59cb\u6a94\u544a\u8a34 Python\uff0cmysite \u9700\u8981\u88ab\u770b\u6210\u4e00\u500b Package\u3002<\/li>\n<li>settings.py &#8211; \u6240\u6709\u7db2\u7ad9\u76f8\u95dc\u8a2d\u5b9a\u7684\u4f4d\u7f6e\uff0c\u4f8b\u5982\u8cc7\u6599\u5eab\u7a2e\u985e\u8207\u53c3\u6578\u3002<\/li>\n<li>urls.py &#8211; \u7db2\u7ad9\u7684 URL \u8a2d\u5b9a\u5730\u65b9\u3002<\/li>\n<li>wsgi.py &#8211; \u517c\u5bb9WSGI\u7684Web\u670d\u52d9\u5668\u7684\u5165\u53e3\uff0c\u70ba\u60a8\u7684\u9805\u76ee\u63d0\u4f9b\u670d\u52d9\u3002<\/li>\n<\/ul>\n\n\n<h5>\u555f\u52d5\u7db2\u7ad9<\/h5>\n<p>\u6211\u5011\u53ef\u4ee5\u5229\u7528\u4ee5\u4e0b\u7684\u6307\u4ee4\u555f\u52d5\u7db2\u7ad9\u4f3a\u670d\u5668\uff0c\u5982\u679c\u9700\u8981\u6307\u5b9a IP \u8207 Port \u7684\u8a71\u53ef\u4ee5\u5206\u5225\u4f7f\u7528\u4ee5\u4e0b\u7684\u6307\u4ee4\uff1a<\/p>\n<pre class=\"lang:bash\">python manage.py runserver\npython manage.py runserver 1721\npython manage.py runserver 213.xxx.xxx.xxx:1721<\/pre>\n<p>\u4ee5\u4e0b\u70ba\u555f\u52d5\u6642\u51fa\u73fe\u7684\u7cfb\u7d71\u8a0a\u606f\uff1a<\/p>\n<pre class=\"lang:bash\">August 28, 2019 - 18:28:46\nDjango version 2.1.11, using settings 'mysite.settings'\nStarting development server at http:\/\/213.xxx.xxx.xxx:1721\/\nQuit the server with CONTROL-C.<\/pre>\n<p>\u5099\u8a3b\uff1a\u5982\u679c\u60f3\u8981\u90e8\u7f72\u7db2\u7ad9\u5728 public IP \u7684\u5730\u65b9\uff0c\u8a18\u5f97\u5728 settings.py \u8981\u52a0\u5165\u4ee5\u4e0b\u7684\u53c3\u6578<\/p>\n<pre class=\"lang-py prettyprint prettyprinted\"><code><span class=\"pln\">ALLOWED_HOSTS <\/span><span class=\"pun\">=<\/span> <span class=\"pun\">[<\/span><span class=\"str\">'213.xxx.xxx.xxx'<\/span><span class=\"pun\">,<\/span> <span class=\"str\">'localhost'<\/span><span class=\"pun\">,<\/span> <span class=\"str\">'127.0.0.1'<\/span><span class=\"pun\">]<\/span><\/code><\/pre>\n\n\n\n<p>\u6210\u529f\u555f\u52d5\u4e4b\u5f8c\uff0c\u53ef\u4ee5\u770b\u5230\u4ee5\u4e0b\u7684\u756b\u9762\uff0c\u4f60\u5c31\u53ef\u4ee5\u958b\u59cb\u5229\u7528 Python \u4f86\u7de8\u8f2f\u7db2\u9801\u4e86\uff1a\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"546\" src=\"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/08\/\u87a2\u5e55\u5feb\u7167-2019-08-28-\u4e0b\u53488.34.06-1024x546.png\" alt=\"\" class=\"wp-image-1680\" srcset=\"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/08\/\u87a2\u5e55\u5feb\u7167-2019-08-28-\u4e0b\u53488.34.06-1024x546.png 1024w, https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/08\/\u87a2\u5e55\u5feb\u7167-2019-08-28-\u4e0b\u53488.34.06-300x160.png 300w, https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/08\/\u87a2\u5e55\u5feb\u7167-2019-08-28-\u4e0b\u53488.34.06-768x410.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u7bc7\u8981\u4ecb\u7d39\u7684\u662f Django \u9019\u4e00\u500b\u7db2\u9801\u7684 Framework\uff0c\u5982\u679c\u4f60\u60f3\u8981\u7528 Python \u4f86\u5beb\u7db2\u9801\u7684\u8a71\uff0c\u9019\u662f\u4e00\u500b\u5f88\u597d\u7684\u67b6\u69cb\uff01\u7531\u65bc Python \u5df2\u7d93\u662f\u6578\u4e00\u6578\u4e8c\u5e38\u7528\u7684\u8a9e\u8a00\u4e86\uff0c\u5982\u679c\u53ef\u4ee5\u4f7f\u7528 Python \u4f86\u64b0\u5beb\u7db2\u7ad9\u76f8\u5c0d\u65bc PHP\uff0c\u53ef\u4ee5\u6bd4\u8f03\u6709\u67b6\u69cb\u53bb\u5efa\u7acb\u81ea\u5df1\u7684\u7db2\u7ad9\uff0c\u9023\u7d50\u5c55\u793a\u5f88\u591a\u5229\u7528 Django \u64b0\u5beb\u51fa\u4f86\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"author":1,"featured_media":8308,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[176,8],"tags":[18,19,20],"class_list":["post-1666","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-website","tag-django","tag-python","tag-website"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Django] \u7528 Python \u5beb\u7db2\u9801\uff1f - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane<\/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:\/\/myoceane.fr\/index.php\/django-\u7528-python-\u5beb\u7db2\u9801\uff1f\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Django] \u7528 Python \u5beb\u7db2\u9801\uff1f - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane\" \/>\n<meta property=\"og:description\" content=\"\u672c\u7bc7\u8981\u4ecb\u7d39\u7684\u662f Django \u9019\u4e00\u500b\u7db2\u9801\u7684 Framework\uff0c\u5982\u679c\u4f60\u60f3\u8981\u7528 Python \u4f86\u5beb\u7db2\u9801\u7684\u8a71\uff0c\u9019\u662f\u4e00\u500b\u5f88\u597d\u7684\u67b6\u69cb\uff01\u7531\u65bc Python \u5df2\u7d93\u662f\u6578\u4e00\u6578\u4e8c\u5e38\u7528\u7684\u8a9e\u8a00\u4e86\uff0c\u5982\u679c\u53ef\u4ee5\u4f7f\u7528 Python \u4f86\u64b0\u5beb\u7db2\u7ad9\u76f8\u5c0d\u65bc PHP\uff0c\u53ef\u4ee5\u6bd4\u8f03\u6709\u67b6\u69cb\u53bb\u5efa\u7acb\u81ea\u5df1\u7684\u7db2\u7ad9\uff0c\u9023\u7d50\u5c55\u793a\u5f88\u591a\u5229\u7528 Django \u64b0\u5beb\u51fa\u4f86\u7684\u7db2\u7ad9\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/myoceane.fr\/index.php\/django-\u7528-python-\u5beb\u7db2\u9801\uff1f\/\" \/>\n<meta property=\"og:site_name\" content=\"\u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-28T18:43:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-05T01:51:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/myoceane.fr\/wp-content\/uploads\/2021\/12\/python-django-logo.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u6ab8\u6aac\u7238\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6ab8\u6aac\u7238\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/\"},\"author\":{\"name\":\"\u6ab8\u6aac\u7238\",\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\"},\"headline\":\"[Django] \u7528 Python \u5beb\u7db2\u9801\uff1f\",\"datePublished\":\"2019-08-28T18:43:01+00:00\",\"dateModified\":\"2021-12-05T01:51:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/\"},\"wordCount\":49,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\"},\"image\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/myoceane.fr\/wp-content\/uploads\/2021\/12\/python-django-logo.jpeg\",\"keywords\":[\"Django\",\"Python\",\"Website\"],\"articleSection\":[\"Python\",\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/\",\"url\":\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/\",\"name\":\"[Django] \u7528 Python \u5beb\u7db2\u9801\uff1f - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane\",\"isPartOf\":{\"@id\":\"https:\/\/myoceane.fr\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/myoceane.fr\/wp-content\/uploads\/2021\/12\/python-django-logo.jpeg\",\"datePublished\":\"2019-08-28T18:43:01+00:00\",\"dateModified\":\"2021-12-05T01:51:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#primaryimage\",\"url\":\"https:\/\/myoceane.fr\/wp-content\/uploads\/2021\/12\/python-django-logo.jpeg\",\"contentUrl\":\"https:\/\/myoceane.fr\/wp-content\/uploads\/2021\/12\/python-django-logo.jpeg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/myoceane.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Django] \u7528 Python \u5beb\u7db2\u9801\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/myoceane.fr\/#website\",\"url\":\"https:\/\/myoceane.fr\/\",\"name\":\"M-Y-Oceane \u60f3\u65b9\u6d89\u6cd5\u3002\u91cf\u74f6\u5916\u7684\u5929\u7a7a\",\"description\":\"\u60f3\u65b9\u6d89\u6cd5, France, Taiwan, Health, Information Technology\",\"publisher\":{\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/myoceane.fr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\",\"name\":\"\u6ab8\u6aac\u7238\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g\",\"caption\":\"\u6ab8\u6aac\u7238\"},\"logo\":{\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/myoceane.fr\/index.php\/author\/johnny5584767gmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Django] \u7528 Python \u5beb\u7db2\u9801\uff1f - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane","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:\/\/myoceane.fr\/index.php\/django-\u7528-python-\u5beb\u7db2\u9801\uff1f\/","og_locale":"en_US","og_type":"article","og_title":"[Django] \u7528 Python \u5beb\u7db2\u9801\uff1f - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane","og_description":"\u672c\u7bc7\u8981\u4ecb\u7d39\u7684\u662f Django \u9019\u4e00\u500b\u7db2\u9801\u7684 Framework\uff0c\u5982\u679c\u4f60\u60f3\u8981\u7528 Python \u4f86\u5beb\u7db2\u9801\u7684\u8a71\uff0c\u9019\u662f\u4e00\u500b\u5f88\u597d\u7684\u67b6\u69cb\uff01\u7531\u65bc Python \u5df2\u7d93\u662f\u6578\u4e00\u6578\u4e8c\u5e38\u7528\u7684\u8a9e\u8a00\u4e86\uff0c\u5982\u679c\u53ef\u4ee5\u4f7f\u7528 Python \u4f86\u64b0\u5beb\u7db2\u7ad9\u76f8\u5c0d\u65bc PHP\uff0c\u53ef\u4ee5\u6bd4\u8f03\u6709\u67b6\u69cb\u53bb\u5efa\u7acb\u81ea\u5df1\u7684\u7db2\u7ad9\uff0c\u9023\u7d50\u5c55\u793a\u5f88\u591a\u5229\u7528 Django \u64b0\u5beb\u51fa\u4f86\u7684\u7db2\u7ad9\u3002","og_url":"https:\/\/myoceane.fr\/index.php\/django-\u7528-python-\u5beb\u7db2\u9801\uff1f\/","og_site_name":"\u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane","article_published_time":"2019-08-28T18:43:01+00:00","article_modified_time":"2021-12-05T01:51:10+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/myoceane.fr\/wp-content\/uploads\/2021\/12\/python-django-logo.jpeg","type":"image\/jpeg"}],"author":"\u6ab8\u6aac\u7238","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u6ab8\u6aac\u7238","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#article","isPartOf":{"@id":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/"},"author":{"name":"\u6ab8\u6aac\u7238","@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b"},"headline":"[Django] \u7528 Python \u5beb\u7db2\u9801\uff1f","datePublished":"2019-08-28T18:43:01+00:00","dateModified":"2021-12-05T01:51:10+00:00","mainEntityOfPage":{"@id":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/"},"wordCount":49,"commentCount":2,"publisher":{"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b"},"image":{"@id":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#primaryimage"},"thumbnailUrl":"https:\/\/myoceane.fr\/wp-content\/uploads\/2021\/12\/python-django-logo.jpeg","keywords":["Django","Python","Website"],"articleSection":["Python","Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/","url":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/","name":"[Django] \u7528 Python \u5beb\u7db2\u9801\uff1f - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane","isPartOf":{"@id":"https:\/\/myoceane.fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#primaryimage"},"image":{"@id":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#primaryimage"},"thumbnailUrl":"https:\/\/myoceane.fr\/wp-content\/uploads\/2021\/12\/python-django-logo.jpeg","datePublished":"2019-08-28T18:43:01+00:00","dateModified":"2021-12-05T01:51:10+00:00","breadcrumb":{"@id":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#primaryimage","url":"https:\/\/myoceane.fr\/wp-content\/uploads\/2021\/12\/python-django-logo.jpeg","contentUrl":"https:\/\/myoceane.fr\/wp-content\/uploads\/2021\/12\/python-django-logo.jpeg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/myoceane.fr\/index.php\/django-%e7%94%a8-python-%e5%af%ab%e7%b6%b2%e9%a0%81%ef%bc%9f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/myoceane.fr\/"},{"@type":"ListItem","position":2,"name":"[Django] \u7528 Python \u5beb\u7db2\u9801\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/myoceane.fr\/#website","url":"https:\/\/myoceane.fr\/","name":"M-Y-Oceane \u60f3\u65b9\u6d89\u6cd5\u3002\u91cf\u74f6\u5916\u7684\u5929\u7a7a","description":"\u60f3\u65b9\u6d89\u6cd5, France, Taiwan, Health, Information Technology","publisher":{"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/myoceane.fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b","name":"\u6ab8\u6aac\u7238","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/myoceane.fr\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g","caption":"\u6ab8\u6aac\u7238"},"logo":{"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/image\/"},"url":"https:\/\/myoceane.fr\/index.php\/author\/johnny5584767gmail-com\/"}]}},"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts\/1666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/comments?post=1666"}],"version-history":[{"count":35,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts\/1666\/revisions"}],"predecessor-version":[{"id":5365,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts\/1666\/revisions\/5365"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/media\/8308"}],"wp:attachment":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/categories?post=1666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/tags?post=1666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}