{"id":40300,"date":"2023-02-27T08:40:46","date_gmt":"2023-08-31T01:11:31","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/"},"modified":"2024-04-29T16:32:20","modified_gmt":"2024-04-29T08:32:20","slug":"%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/","title":{"rendered":"\u6211\u7528Django 2\uff08Python 3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684Web\u5e94\u7528\u7a0b\u5e8f"},"content":{"rendered":"<h2>\u603b\u7ed3<\/h2>\n<p>\u6211\u521b\u5efa\u4e86\u4e00\u4e2a\u57fa\u4e8eDjango 2.0\u7684\u514b\u9686\u7248\u672c\uff0c\u540d\u4e3a\u201cEasyBuggy Django\u201d\uff0c\u8fd9\u662f\u4e00\u4e2a\u4e4b\u524d\u4ecb\u7ecd\u8fc7\u7684\u5145\u6ee1\u6f0f\u6d1e\u7684Web\u5e94\u7528\u7a0b\u5e8f\u201cEasyBuggy\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d400337434c4406c9093b\/2-0.png\" alt=\"easybuggy.png\" \/><\/div>\n<p>\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u4ece\u4e0b\u8f7d\u5230\u542f\u52a8\u6765\u5b8c\u6210\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>git clone https:\/\/github.com\/k-tamura\/easybuggy4django.git\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">cd <\/span>easybuggy4django\/\r\n<span class=\"nv\">$ <\/span>pip <span class=\"nb\">install<\/span> <span class=\"nt\">-r<\/span> requirements.txt\r\n<span class=\"nv\">$ <\/span>python manage.py runserver\r\n<\/code><\/pre>\n<div>\n<div class=\"post-table\"><img loading=\"lazy\" decoding=\"async\" class=\"emoji\" title=\":writing_hand_tone1:\" src=\"https:\/\/cdn.qiita.com\/emoji\/twemoji\/unicode\/270d-1f3fb.png\" alt=\":writing_hand_tone1:\" width=\"20\" height=\"20\" \/> \u8d77\u52d5\u3059\u308b\u306b\u306fPython 3\u304c\u5fc5\u8981\u3067\u3059\u3002<code>python manage.py runserver 9000<\/code>\u3068\u3059\u308b\u30689000\u756a\u30dd\u30fc\u30c8\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u5728\u6267\u884c\u4e0a\u8ff0\u547d\u4ee4\u4e4b\u524d\uff0c\u5efa\u8bae\u5148\u6784\u5efaPython\u7684\u865a\u62df\u73af\u5883\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>python3 <span class=\"nt\">-m<\/span> venv venv\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">source <\/span>venv\/bin\/activate\r\n<\/code><\/pre>\n<p>\u5f53\u60a8\u770b\u5230\u4ee5\u4e0b\u6d88\u606f\u65f6\uff0cWeb\u5e94\u7528\u7a0b\u5e8f\u5df2\u6210\u529f\u542f\u52a8\u3002<\/p>\n<pre class=\"post-pre\"><code>System check identified no issues (0 silenced).\r\nMay 29, 2018 - 16:50:34\r\nDjango version 2.0.4, using settings 'config.settings'\r\nStarting development server at http:\/\/127.0.0.1:8000\/\r\nQuit the server with CONTROL-C.\r\n<\/code><\/pre>\n<p>\u5f53\u8bbf\u95ee http:\/\/localhost:8000 \u65f6\uff0c\u5c06\u4f1a\u663e\u793a\u4e3b\u9875\u9762\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d400337434c4406c9093b\/12-0.gif\" alt=\"mov_eb_dj.gif\" \/><\/div>\n<h2>\u8fd9\u4e2a\u5e94\u7528\u7a0b\u5e8f\u7684\u7528\u9014<\/h2>\n<p>\u300cEasyBuggy\u300d\u7684\u76ee\u7684\u4e0e\u4e4b\u7c7b\u4f3c\uff0c\u90fd\u662f\u4e3a\u4e86\u590d\u73b0\u548c\u5206\u6790\u5404\u79cd\u95ee\u9898\uff0c\u4ee5\u52a0\u6df1\u7406\u89e3\u3002\u76ee\u524d\u5df2\u5b9e\u73b0\u7684\u5305\u62ec\u4ee5\u4e0b\u9519\u8bef\u548c\u6f0f\u6d1e\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30c7\u30c3\u30c9\u30ed\u30c3\u30af(Python)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30c7\u30c3\u30c9\u30ed\u30c3\u30af(SQL)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u7121\u9650\u30eb\u30fc\u30d7<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30eb\u30fc\u30d7<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30e1\u30e2\u30ea\u30ea\u30fc\u30af<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u30ea\u30fc\u30af<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30ea\u30fc\u30af<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u30ea\u30fc\u30af<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b9\u30ec\u30c3\u30c9\u30ea\u30fc\u30af<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u6587\u5b57\u5316\u3051<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u6574\u6570\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u4e38\u3081\u8aa4\u5dee<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u6253\u3061\u5207\u308a\u8aa4\u5dee<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u60c5\u5831\u843d\u3061<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">XSS (\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30b9\u30af\u30ea\u30d7\u30c6\u30a3\u30f3\u30b0)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">LDAP\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b3\u30fc\u30c9\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">OS\u30b3\u30de\u30f3\u30c9\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30e1\u30fc\u30eb\u30d8\u30c3\u30c0\u30fc\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b5\u30a4\u30ba\u5236\u9650\u306e\u7121\u3044\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u62e1\u5f35\u5b50\u5236\u9650\u306e\u7121\u3044\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d6\u30eb\u30fc\u30c8\u30d5\u30a9\u30fc\u30b9\u653b\u6483\u53ef\u80fd\u306a\u30ed\u30b0\u30a4\u30f3\u753b\u9762<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30aa\u30fc\u30d7\u30f3\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u53ef\u80fd\u306a\u30ed\u30b0\u30a4\u30f3\u753b\u9762<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u89aa\u5207\u904e\u304e\u308b\u8a8d\u8a3c\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">CSRF (\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u30d5\u30a9\u30fc\u30b8\u30a7\u30ea)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30af\u30ea\u30c3\u30af\u30b8\u30e3\u30c3\u30ad\u30f3\u30b0<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">XXE (XML\u5916\u90e8\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3)<\/ul>\n<p>\u8fd9\u4e00\u6b21\u6211\u7528Python\u8fdb\u884c\u5b9e\u73b0\u3002\u5373\u4f7f\u662f\u76f8\u540c\u7684\u529f\u80fd\uff0c\u4e0e\u4e4b\u524d\u4f7f\u7528Java\u65f6\u53ef\u80fd\u4f1a\u6709\u4e0d\u540c\u7684\u884c\u4e3a\uff0c\u8fd9\u8ba9\u6211\u53d7\u76ca\u532a\u6d45\u3002<\/p>\n<h2>\u793a\u5a01<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u6f14\u793a\uff0c\u901a\u8fc7\u4ee3\u7801\u6ce8\u5165\u6765\u505c\u6b62EasyBuggy Django\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d400337434c4406c9093b\/19-0.gif\" alt=\"mov_eb_dj_demo.gif\" \/><\/div>\n<h2>\u6784\u6210\u7684\u533a\u522b\u70b9<\/h2>\n<p>\u6211\u5df2\u7ecf\u521b\u5efa\u4e86\u201cEasyBuggy\u201d\u7684\u4e24\u4e2a\u514b\u9686\u7248\u672c\uff0c\u5206\u522b\u662f\u201cEasyBuggy Boot\u201d\uff08\u57fa\u4e8eSpring Boot\uff09\u548c\u201cEasyBuggy Bootlin\u201d\uff08\u57fa\u4e8eSpring Boot\u4e14\u4f7f\u7528Kotlin\u5b9e\u73b0\uff09\uff0c\u5b83\u4eec\u4e0e\u539f\u59cb\u7248\u672c\u7684\u4e3b\u8981\u533a\u522b\u5982\u4e0b\u3002<\/p>\n<div>\n<div class=\"post-table\"><\/div>\n<\/div>\n<div>\n<div class=\"post-table\">\u76f8\u9055\u70b9EasyBuggyEasyBuggy BootEasyBuggy BootlinEasyBuggy Django\u8a00\u8a9eJavaJavaKotlinPython\u30d9\u30fc\u30b9\u3068\u306a\u308b\u6280\u8853Servlet 3.0.1Spring Boot 1.5.6 (Servlet 3.0.1)Spring Boot 1.5.7 (Servlet 3.0.1)Django 2.0\u30d7\u30ec\u30bc\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u5c64\u672a\u4f7f\u7528 (\u4e00\u90e8 JSP 2.2 + JSTL 1.2)Thymeleaf 2.1.5 (\u4e00\u90e8 JSP 2.3 + JSTL 1.2)Thymeleaf 2.1.5 (\u4e00\u90e8 JSP 2.3 + JSTL 1.2)Django 2.0\u30b3\u30f3\u30c6\u30caTomcat 7.0.37Tomcat 8.5.16Tomcat 8.5.20(Django\u7d44\u307f\u8fbc\u307f\u306e\u958b\u767a\u7528Web \u30b5\u30fc\u30d0\u30fc)DB\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\/\u30b5\u30fc\u30d0\u30fcJDBC \/ Derby 10.8.3.0Spring JDBC 4.3.9 \/ Derby 10.12.1.1 (Java 7\u306e\u5834\u5408)\u3001\u307e\u305f\u306f10.13.1.1 (Java 8\u306e\u5834\u5408)Spring JDBC 4.3.11 \/ Derby 10.13.1.1PyMySQL 0.8.0 \/ MySQL\u30b5\u30fc\u30d0\u30fc\u304c\u5fc5\u8981LDAP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\/\u30b5\u30fc\u30d0\u30fcApache DS Client API 1.0.0 \/ Server 1.5.5Spring LDAP 2.3.1 \/ unboundid-ldapsdk 3.2.1Spring LDAP 2.3.1 \/ unboundid-ldapsdk 3.2.1LDAP3 2.5 \/ \u4efb\u610fLDAP\u30b5\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u30e1\u30fc\u30ebJavaMail 1.5.1JavaMail 1.5.1 (Spring Boot Mail\u3067\u5c0e\u5165\u3055\u308c\u308bJavaMail 1.5.6\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9)JavaMail 1.5.1 (Spring Boot Mail\u3067\u5c0e\u5165\u3055\u308c\u308bJavaMail 1.5.6\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9)smtplib(\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea)\u958b\u767a\u30c4\u30fc\u30eb\u7121\u3057Spring Boot Developer Tools 1.5.6Spring Boot Developer Tools 1.5.7\u7121\u3057\u30d3\u30eb\u30c9\u30c4\u30fc\u30ebMavenMavenGradle\u7121\u3057\u5b9f\u884c\u74b0\u5883JRE 6\u4ee5\u4e0a\u3092\u30b5\u30dd\u30fc\u30c8JRE 7\u4ee5\u4e0a\u3092\u30b5\u30dd\u30fc\u30c8JRE 8\u4ee5\u4e0a\u3092\u30b5\u30dd\u30fc\u30c8Python 3<\/div>\n<\/div>\n<h2>\u7814\u767c\u65b9\u5f0f de<\/h2>\n<p>\u6211\u5728\u5f00\u53d1EasyBuggy Django\u65f6\u4f7f\u7528Pycharm\u3002\u53ea\u9700\u5728&#8221;Run\/Debug Configurations&#8221;\u4e2d\u8bbe\u7f6e\u5e26\u6709runserver\u53c2\u6570\u7684manage.py\u542f\u52a8\u914d\u7f6e\uff0c\u4fbf\u53ef\u8fdb\u884c\u8c03\u8bd5\u3001\u4fee\u590d\u548c\u5373\u65f6\u9a8c\u8bc1\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d400337434c4406c9093b\/26-0.png\" alt=\"Screenshot from 2018-05-30 13-17-45.png\" \/><\/div>\n<h2>\u6700\u7ec8<\/h2>\n<p>\u867d\u7136\u8fd8\u6709\u8bb8\u591a\u672a\u5b9e\u73b0\u7684\u529f\u80fd\u548c\u95ee\u9898\uff0c\u4f46\u6211\u5df2\u7ecf\u53d1\u5e03\u4e86\u3002\u6211\u5728\u5de5\u4f5c\u4e2d\u51e0\u4e4e\u6ca1\u6709\u4f7f\u7528\u8fc7Python\u548cDjango\uff0c\u6240\u4ee5\u5982\u679c\u4f60\u80fd\u7ed9\u51fa\u4e00\u4e9b\u5efa\u8bae\uff0c\u6211\u4f1a\u5f88\u9ad8\u5174\u3002\u5982\u679c\u4f60\u6709\u4efb\u4f55\u5173\u4e8e\u201c\u8fd9\u79cd\u5b9e\u73b0\u53ef\u80fd\u5b58\u5728\u95ee\u9898\u548c\u6f0f\u6d1e\u201d\u7684\u4fe1\u606f\uff0c\u8bf7\u52a1\u5fc5\u544a\u8bc9\u6211\u3002<\/p>\n<h2>\u8bf7\u53c2\u8003<\/h2>\n<p>Django \u6587\u6863\u7684\u5b89\u5168\u95ee\u9898\u5b58\u6863<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u603b\u7ed3 \u6211\u521b\u5efa\u4e86\u4e00\u4e2a\u57fa\u4e8eDjango 2.0\u7684\u514b\u9686\u7248\u672c\uff0c\u540d\u4e3a\u201cEasyBuggy Django\u201d\uff0c\u8fd9\u662f\u4e00\u4e2a\u4e4b\u524d\u4ecb [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40300","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>\u6211\u7528Django 2\uff08Python 3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684Web\u5e94\u7528\u7a0b\u5e8f - 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\/\u6211\u7528django-2\uff08python-3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684web\u5e94\u7528\u7a0b\u5e8f\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u7528Django 2\uff08Python 3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684Web\u5e94\u7528\u7a0b\u5e8f\" \/>\n<meta property=\"og:description\" content=\"\u603b\u7ed3 \u6211\u521b\u5efa\u4e86\u4e00\u4e2a\u57fa\u4e8eDjango 2.0\u7684\u514b\u9686\u7248\u672c\uff0c\u540d\u4e3a\u201cEasyBuggy Django\u201d\uff0c\u8fd9\u662f\u4e00\u4e2a\u4e4b\u524d\u4ecb [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u7528django-2\uff08python-3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684web\u5e94\u7528\u7a0b\u5e8f\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-31T01:11:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T08:32:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d400337434c4406c9093b\/2-0.png\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/\",\"name\":\"\u6211\u7528Django 2\uff08Python 3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684Web\u5e94\u7528\u7a0b\u5e8f - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-08-31T01:11:31+00:00\",\"dateModified\":\"2024-04-29T08:32:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u7528Django 2\uff08Python 3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684Web\u5e94\u7528\u7a0b\u5e8f\"}]},{\"@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\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u7528Django 2\uff08Python 3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684Web\u5e94\u7528\u7a0b\u5e8f - 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\/\u6211\u7528django-2\uff08python-3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684web\u5e94\u7528\u7a0b\u5e8f\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u7528Django 2\uff08Python 3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684Web\u5e94\u7528\u7a0b\u5e8f","og_description":"\u603b\u7ed3 \u6211\u521b\u5efa\u4e86\u4e00\u4e2a\u57fa\u4e8eDjango 2.0\u7684\u514b\u9686\u7248\u672c\uff0c\u540d\u4e3a\u201cEasyBuggy Django\u201d\uff0c\u8fd9\u662f\u4e00\u4e2a\u4e4b\u524d\u4ecb [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u7528django-2\uff08python-3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684web\u5e94\u7528\u7a0b\u5e8f\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-31T01:11:31+00:00","article_modified_time":"2024-04-29T08:32:20+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d400337434c4406c9093b\/2-0.png"}],"author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/","name":"\u6211\u7528Django 2\uff08Python 3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684Web\u5e94\u7528\u7a0b\u5e8f - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-08-31T01:11:31+00:00","dateModified":"2024-04-29T08:32:20+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u7528Django 2\uff08Python 3\uff09\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5145\u6ee1\u9519\u8bef\u7684Web\u5e94\u7528\u7a0b\u5e8f"}]},{"@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\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e7%94%a8django-2%ef%bc%88python-3%ef%bc%89%e5%ae%9e%e7%8e%b0%e4%ba%86%e4%b8%80%e4%b8%aa%e5%85%85%e6%bb%a1%e9%94%99%e8%af%af%e7%9a%84web%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40300","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\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40300"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40300\/revisions"}],"predecessor-version":[{"id":86384,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40300\/revisions\/86384"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}