{"id":56499,"date":"2025-08-14T19:25:46","date_gmt":"2025-08-14T11:25:46","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/56499.html"},"modified":"2025-08-14T19:25:46","modified_gmt":"2025-08-14T11:25:46","slug":"django%e9%a1%b9%e7%9b%ae%e9%83%a8%e7%bd%b2iis%e5%ae%8c%e6%95%b4%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/56499.html","title":{"rendered":"Django\u9879\u76ee\u90e8\u7f72IIS\u5b8c\u6574\u6307\u5357"},"content":{"rendered":"<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u5f53\u672c\u5730\u9879\u76ee\u80fd\u591f\u8dd1\u901a\u540e&#xff0c;\u5c06\u9879\u76ee\u90e8\u7f72\u8fdb\u670d\u52a1\u5668IIS\u9700\u8981\u7684\u6b65\u9aa4<\/p>\n<h2 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">\n\u524d\u7aef\u6253\u5305<\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n\u4e00\u3001\u9996\u5148\u66f4\u6b63\u4f60\u7684\u524d\u7aef\u9879\u76ee\u5b58\u50a8\u7684\u540e\u7aefURL\u5730\u5740&#xff0c;\u6bd4\u5982&#xff1a;<\/p>\n<p>import { defineStore} from &#039;pinia&#039;<br \/>\nexport const baseUrl &#061;<br \/>\n  {axios_base_url:&#039;http:\/\/192.168.0.1:9100\/&#039;}<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u8fd9\u91cc\u662f\u5f00\u53d1\u73af\u5883\u7684\u540e\u7aefURL&#xff0c;\u66ff\u6362\u4e3a\u670d\u52a1\u5668\u540e\u7aefIP\u53ca\u7aef\u53e3&#xff0c;\u6bd4\u5982&#xff1a;<\/p>\n<p>import { defineStore} from &#039;pinia&#039;<\/p>\n<p>export const baseUrl &#061;<br \/>\n  {axios_base_url:&#039;http:\/\/172.168.0.1:9000\/&#039;}<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u5982\u679cIIS\u670d\u52a1\u5668\u8fd8\u672a\u914d\u7f6e&#xff0c;\u8fd9\u91cc\u4e0b\u9762\u6240\u6709\u7684\u524d\u7aef\u6253\u5305\u64cd\u4f5c\u5305\u62ec\u7b2c\u4e00\u9879\u5148\u4e0d\u7ba1&#xff0c;\u5148\u914d\u7f6e\u5b8cIIS\u540e\u5728\u7ee7\u7eed\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4e8c\u3001\u4fee\u6539\u524d\u7aef\u6839\u76ee\u5f55\u4e0b\u7684vite.config.ts\u6587\u4ef6<br \/>\n\u4fee\u6539\u5982\u4e0b&#xff1a;<\/p>\n<p>export default defineConfig({<br \/>\n  plugins: [vue()],<br \/>\n  base:&#039;.\/&#039;,<br \/>\n  server:{<br \/>\n    host:&#039;0.0.0.0&#039;,<br \/>\n  }<br \/>\n})<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">base\u53c2\u6570\u4f1a\u5f71\u54cd\u6253\u5305\u540e\u751f\u6210\u7684index.html\u4e2d\u5bf9\u9759\u6001\u6587\u4ef6\u7684\u8bbf\u95ee\u8def\u5f84&#xff0c;\u6bd4\u5982index.html\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>&lt;!doctype html&gt;<br \/>\n&lt;html lang&#061;&#034;en&#034;&gt;<br \/>\n  &lt;head&gt;<br \/>\n    &lt;meta charset&#061;&#034;UTF-8&#034; \/&gt;<br \/>\n    &lt;link rel&#061;&#034;icon&#034; type&#061;&#034;image\/jpg&#034; href&#061;&#034;.\/assets\/www-BVPKxQIJ.jpg&#034; \/&gt;<br \/>\n    &lt;meta name&#061;&#034;viewport&#034; content&#061;&#034;width&#061;device-width, initial-scale&#061;1.0&#034; \/&gt;<br \/>\n    &lt;title&gt;1111&lt;\/title&gt;<br \/>\n    &lt;script type&#061;&#034;module&#034; crossorigin src&#061;&#034;.\/assets\/index-BPbgCyRu.js&#034;&gt;&lt;\/script&gt;<br \/>\n    &lt;link rel&#061;&#034;stylesheet&#034; crossorigin href&#061;&#034;.\/assets\/index-y7qLhSWx.css&#034;&gt;<br \/>\n  &lt;\/head&gt;<br \/>\n  &lt;body&gt;<br \/>\n    &lt;div id&#061;&#034;app&#034;&gt;&lt;\/div&gt;<br \/>\n  &lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u6240\u6709\u7684\u9759\u6001\u6587\u4ef6\u4f1a\u5728\u5f53\u524d\u6587\u4ef6\u5939\u7684assets\u4e2d\u5bfb\u627e&#xff0c;\u5982\u679cvite.config.ts\u914d\u7f6e\u9519\u8bef\u5219\u6253\u5305\u540e\u90e8\u7f72\u4e0a\u670d\u52a1\u5668\u4f1a\u53d1\u751f\u627e\u4e0d\u5230\u9759\u6001\u6587\u4ef6\u7684\u9519\u8bef\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n\u4e09\u3001\u6700\u540e\u7ec8\u7aef\u4f7f\u7528npm run build \u5c06\u524d\u7aef\u9879\u76ee\u6253\u5305&#xff0c;\u4f1a\u5728\u524d\u7aef\u6839\u76ee\u5f55\u4e0b\u751f\u6210dist\u6587\u4ef6\u5939&#xff0c;\u8be5\u6587\u4ef6\u5939\u4e0b\u6709\u5b50\u6587\u4ef6\u5939assets\u548c\u4e00\u4e2aindex.html\u548cvite\u7684\u56fe\u6807&#xff0c;\u68c0\u67e5\u65e0\u7f3a\u5931\u5219\u524d\u7aef\u9879\u76ee\u6253\u5305\u5b8c\u6210\u3002<br \/>\n\u00a0<\/p>\n<h2 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">\u540e\u7aef\u914d\u7f6e<\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u56db\u3001\u540e\u7aefdjango\u9879\u76ee\u9700\u8981\u6ce8\u610f\u7684\u662fsettings.py\u4e2d\u6570\u636e\u5e93&#xff08;mysql&#xff09;\u914d\u7f6e&#xff0c;\u5982\u679c\u6570\u636e\u5e93\u7528\u6237\u975eroot\u7528\u6237&#xff0c;\u5728\u670d\u52a1\u5668\u4e2d\u9700\u8981\u4f7f\u7528\u7ba1\u7406\u5458root\u767b\u9646mysql\u540e\u5bf9\u76ee\u6807\u6570\u636e\u5e93\u7528\u6237\u6388\u4e88\u76ee\u6807\u6570\u636e\u5e93\u4e2d\u6240\u6709\u8868\u7684\u6743\u9650&#xff0c;\u65e0\u6743\u9650\u7684\u8bdd\u4f7f\u7528\u6570\u636e\u8fc1\u79fb\u65f6\u4f1a\u62a5\u9519&#xff0c;\u6dfb\u52a0\u6743\u9650\u5982\u4e0b&#xff1a;<\/p>\n<p>GRANT ALL PRIVILEGES ON mydb.* TO &#039;user&#039;&#064;&#039;localhost&#039;;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u8fd9\u91cc\u7684mydb\u4e3a\u76ee\u6807\u6570\u636e\u5e93\u540d&#xff0c;<span style=\"color:#4da621\">&#039;user&#039;<\/span>\u4e3a\u6570\u636e\u5e93\u7528\u6237\u540d<br \/>\n\u4e4b\u540e\u5237\u65b0\u6743\u9650<\/p>\n<p>FLUSH PRIVILEGES;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u6267\u884c\u6210\u529f\u540e\u518d\u8fdb\u884c\u6570\u636e\u8fc1\u79fb\u4e0d\u4f1a\u63d0\u793a\u65e0\u6743\u9650\u800c\u5931\u8d25\u3002<\/p>\n<p>\u4e94\u3001\u5982\u9879\u76ee\u4f7f\u7528\u7684\u662fdjango\u81ea\u5e26\u7684\u540e\u53f0&#xff0c;\u9700\u8981\u4f7f\u7528python manage.py collectstatic\u6536\u96c6\u9759\u6001\u6587\u4ef6&#xff0c;\u5728\u8fd9\u4e4b\u524d&#xff0c;\u9700\u8981\u67e5\u770b\u4f60\u7684settings.py\u4e2d\u5173\u4e8e\u9759\u6001\u6587\u4ef6\u7684\u76f8\u5173\u914d\u7f6e<\/p>\n<p>STATIC_ROOT &#061; os.path.join(BASE_DIR, &#039;frontend&#039;)<br \/>\nSTATICFILES_DIRS &#061; [os.path.join(BASE_DIR, &#039;frontend\/assets&#039;)]<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u8fd9\u91cc\u7684STATIC_ROOT\u544a\u8bc9Django\u6267\u884cpython manage.py collectstatic\u540e\u6536\u96c6\u7684\u6587\u4ef6\u653e\u5728\u54ea\u91cc&#xff0c;\u5f53\u524d\u6267\u884c\u4f1a\u5c06Django\u81ea\u5e26\u7684\u540e\u53f0\u6837\u5f0f\u653e\u5728\u8bbe\u7f6e\u7684frontend\u7684admin\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u8fd9\u91ccSTATICFILES_DIRS\u662f\u544a\u8bc9Django\u989d\u5916\u7684\u9759\u6001\u6587\u4ef6\u4ece\u54ea\u91cc\u6765&#xff0c;\u5728\u670d\u52a1\u5668\u4e2d\u4f1a\u5c06\u524d\u7aef\u6253\u5305\u7684dist\u6587\u4ef6\u4e2d\u7684\u6240\u6709\u6587\u4ef6(\u4e00\u4e2aassets\u6587\u4ef6\u5939\u548c\u4e00\u4e2aindex.html)\u66ff\u6362\u5230frontend\u6587\u4ef6\u5939\u4e0b&#xff0c;\u8fd9\u91cc\u7684\u914d\u7f6e\u5c31\u544a\u8bc9Django\u989d\u5916\u7684\u9759\u6001\u6587\u4ef6\u5c31\u5728\u9879\u76ee\u76ee\u5f55frontend\/assets\u4e0b\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"text-align:justify\">\u516d\u3001\u6267\u884cpython manage.py collectstatic\u540e&#xff0c;\u5c06\u524d\u7aef\u6253\u5305\u7684dist\u6587\u4ef6\u5939\u4e0b\u7684\u5185\u5bb9\u590d\u5236\u5230Django\u9879\u76eefrontend\u6587\u4ef6\u5939\u4e0b&#xff0c;\u8fd9\u65f6frontend\u6587\u4ef6\u5939\u6709assets\u6587\u4ef6\u5939\u548cadmin\u6587\u4ef6\u5939\u548c\u4e00\u4e2aindex.html,\u8fd9\u65f6\u5982\u679cIIS\u4e2d\u5bf9\u8be5\u7f51\u7ad9\u6dfb\u52a0\u7684\u865a\u62df\u76ee\u5f55\u662fassets\u6587\u4ef6\u5939\u7684\u76ee\u5f55&#xff0c;\u5219\u9700\u8981\u628aadmin\u6587\u4ef6\u5939\u590d\u5236\u7c98\u8d34\u5230assets\u6587\u4ef6\u5939\u4e2d&#xff0c;\u6b64\u65f6Django\u540e\u53f0\u6837\u5f0f\u6b63\u5e38\u8bbf\u95ee\u3002<br \/>\n\u00a0<\/p>\n<p style=\"text-align:justify\">\u4e03\u3001\u5728\u670d\u52a1\u5668IIS\u7f51\u7ad9\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u5c06\u914d\u7f6e\u597d\u7684Django\u9879\u76ee&#xff08;\u524d\u7aef\u6253\u5305\u6587\u4ef6\u5df2\u5728frontend\u6587\u4ef6\u5939\u4e0b&#xff09;\u4f20\u5230\u670d\u52a1\u5668&#xff0c;\u4e4b\u540e\u5728python\u7684Scripts\u76ee\u5f55\u4e0bpip\u5b89\u88c5wfastcgi\u6a21\u5757&#xff0c;\u5728\u4f60python\u5b89\u88c5\u76ee\u5f55\u5982Python\\\\Python38-64\\\\.venv\\\\Lib\\\\site-packages\\\\wfastcgi.py\u4e2d\u627e\u5230wfastcgi.py&#xff0c;<br \/>\n\u5c06wfastcgi\u6587\u4ef6\u590d\u5236\u5230Django\u9879\u76ee\u6839\u76ee\u5f55\u4e0b&#xff0c;\u540c\u65f6\u5728\u9879\u76ee\u6839\u76ee\u5f55\u65b0\u5efa\u6587\u4ef6web.config&#xff08;\u7c7b\u578b\u4e3aCONFIG\u6587\u4ef6&#xff09;&#xff0c;\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>&lt;?xml version&#061;&#034;1.0&#034; encoding&#061;&#034;UTF-8&#034;?&gt;<br \/>\n&lt;configuration&gt;<br \/>\n    &lt;system.webServer&gt;<br \/>\n        &lt;handlers&gt;<br \/>\n            &lt;remove name&#061;&#034;StaticFile&#034; \/&gt;<br \/>\n            &lt;add name&#061;&#034;StaticFile&#034; path&#061;&#034;*&#034; verb&#061;&#034;*&#034; modules&#061;&#034;FastCgiModule&#034; scriptProcessor&#061;&#034;C:\\\\Users\\\\..\\\\Python\\\\Python38-64\\\\.venv\\\\Scripts\\\\python38.exe|&amp;quot;D:\\\\Program Files\\\\product\\\\wfastcgi.py&amp;quot;&#034; resourceType&#061;&#034;Unspecified&#034; requireAccess&#061;&#034;Script&#034; \/&gt;<br \/>\n        &lt;\/handlers&gt;<br \/>\n        &lt;httpErrors errorMode&#061;&#034;Detailed&#034; \/&gt;<br \/>\n        &lt;directoryBrowse enabled&#061;&#034;false&#034; \/&gt;<br \/>\n    &lt;\/system.webServer&gt;<br \/>\n&lt;appSettings&gt;<br \/>\n            &lt;add key&#061;&#034;WSGI_HANDLER&#034; value&#061;&#034;django.core.wsgi.get_wsgi_application()&#034; \/&gt;<br \/>\n            &lt;add key&#061;&#034;PYTHONPATH&#034; value&#061;&#034;&#034; \/&gt;<br \/>\n            &lt;add key&#061;&#034;DJANGO_SETTINGS_MODULE&#034; value&#061;&#034;product.settings&#034; \/&gt;<br \/>\n        &lt;\/appSettings&gt;<br \/>\n    &lt;system.web&gt;<br \/>\n        &lt;identity impersonate&#061;&#034;true&#034; \/&gt;<br \/>\n    &lt;\/system.web&gt;<br \/>\n&lt;system.webServer&gt;<br \/>\n    &lt;validation validateIntegratedModeConfiguration&#061;&#034;false&#034; \/&gt;<br \/>\n  &lt;\/system.webServer&gt;<br \/>\n&lt;\/configuration&gt;<\/p>\n<p>\u8fd9\u91cc\u7684scriptProcessor\u7b2c\u4e00\u4e2a\u8def\u5f84\u662f\u4f60\u7684python\u89e3\u91ca\u5668\u8def\u5f84&#xff0c;\u7b2c\u4e8c\u4e2a\u8def\u5f84\u4e3a\u9879\u76ee\u6587\u4ef6\u4e2dwfastcgi\u7684\u8def\u5f84&#xff0c;\u6240\u6709\u7684product\u4e3a\u4f60\u7684\u9879\u76ee\u540d&#xff0c;\u81ea\u884c\u66ff\u6362<\/p>\n<p>\u4e4b\u540e\u518d\u4e8efrontend\/assets\u4e0b\u6dfb\u52a0web.config\u6587\u4ef6&#xff0c;\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>&lt;?xml version&#061;&#034;1.0&#034; encoding&#061;&#034;UTF-8&#034;?&gt;<br \/>\n    &lt;configuration&gt;<br \/>\n      &lt;system.webServer&gt;<br \/>\n      &lt;!&#8211; this configuration overrides the FastCGI handler to let IIS serve the static files &#8211;&gt;<br \/>\n      &lt;handlers&gt;<br \/>\n        &lt;clear\/&gt;<br \/>\n   &lt;add name&#061;&#034;StaticFile&#034; path&#061;&#034;*&#034; verb&#061;&#034;*&#034; modules&#061;&#034;StaticFileModule&#034; resourceType&#061;&#034;File&#034; requireAccess&#061;&#034;Read&#034; \/&gt;<br \/>\n     &lt;\/handlers&gt;<br \/>\n   &lt;\/system.webServer&gt;<br \/>\n&lt;\/configuration&gt;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u6b64\u65f6\u518d\u4e8e\u9879\u76ee\u6839\u76ee\u5f55&#xff08;\u6709manage.py\u7684\u76ee\u5f55&#xff09;\u5730\u5740\u680f\u8f93\u5165cmd,python manage.py migrate<br \/>\n\u8fc1\u79fb\u6210\u529f\u540e\u9879\u76ee\u5c31\u90e8\u7f72\u6210\u529f\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb298\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u5f53\u672c\u5730\u9879\u76ee\u80fd\u591f\u8dd1\u901a\u540e\uff0c\u5c06\u9879\u76ee\u90e8\u7f72\u8fdb\u670d\u52a1\u5668IIS\u9700\u8981\u7684\u6b65\u9aa4\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[890,187,81,625,87],"topic":[],"class_list":["post-56499","post","type-post","status-publish","format-standard","hentry","category-server","tag-django","tag-javascript","tag-python","tag-vue-js","tag-87"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Django\u9879\u76ee\u90e8\u7f72IIS\u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/56499.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Django\u9879\u76ee\u90e8\u7f72IIS\u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb298\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u5f53\u672c\u5730\u9879\u76ee\u80fd\u591f\u8dd1\u901a\u540e\uff0c\u5c06\u9879\u76ee\u90e8\u7f72\u8fdb\u670d\u52a1\u5668IIS\u9700\u8981\u7684\u6b65\u9aa4\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/56499.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-14T11:25:46+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/56499.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/56499.html\",\"name\":\"Django\u9879\u76ee\u90e8\u7f72IIS\u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-14T11:25:46+00:00\",\"dateModified\":\"2025-08-14T11:25:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/56499.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/56499.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/56499.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Django\u9879\u76ee\u90e8\u7f72IIS\u5b8c\u6574\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Django\u9879\u76ee\u90e8\u7f72IIS\u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/56499.html","og_locale":"zh_CN","og_type":"article","og_title":"Django\u9879\u76ee\u90e8\u7f72IIS\u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb298\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u5f53\u672c\u5730\u9879\u76ee\u80fd\u591f\u8dd1\u901a\u540e\uff0c\u5c06\u9879\u76ee\u90e8\u7f72\u8fdb\u670d\u52a1\u5668IIS\u9700\u8981\u7684\u6b65\u9aa4\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/56499.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-14T11:25:46+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/56499.html","url":"https:\/\/www.wsisp.com\/helps\/56499.html","name":"Django\u9879\u76ee\u90e8\u7f72IIS\u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-14T11:25:46+00:00","dateModified":"2025-08-14T11:25:46+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/56499.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/56499.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/56499.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Django\u9879\u76ee\u90e8\u7f72IIS\u5b8c\u6574\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/56499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=56499"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/56499\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=56499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=56499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=56499"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=56499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}