{"id":49919,"date":"2023-11-02T04:42:06","date_gmt":"2023-12-14T09:30:00","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/"},"modified":"2024-05-04T07:05:13","modified_gmt":"2024-05-03T23:05:13","slug":"%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/","title":{"rendered":"\u5728PythonAnywhere\u4e0a\u8fd0\u884cDjango"},"content":{"rendered":"<h1>\u4e0d\u540c\u7248\u672c\u3002<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Python: 3.4.0<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Django: 1.8.2<\/ul>\n<h1>\u521b\u5efa\u4e00\u4e2a\u9002\u7528\u4e8epython3\u7684\u865a\u62df\u73af\u5883\u3002<\/h1>\n<p>\u6211\u8981\u6253\u5f00\u7ec8\u7aef\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/4-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2015-06-28 17.16.36.png\" \/><\/div>\n<p>\u5728\u7ec8\u7aef\u4e0a\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u73af\u5883\u3002<\/p>\n<pre class=\"post-pre\"><code>08:20 ~ $ virtualenv --python=\"python3\" env                                                                                          \r\nRunning virtualenv with interpreter \/usr\/bin\/python3\r\nUsing base prefix '\/usr'\r\nNew python executable in env\/bin\/python3\r\nAlso creating executable in env\/bin\/python\r\nInstalling setuptools, pip, wheel...done.\r\n08:21 ~ $ \r\n\r\n<\/code><\/pre>\n<p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883 virtualenv\u3002<\/p>\n<pre class=\"post-pre\"><code>08:21 ~ $ source env\/bin\/activate                                                                                                    \r\n(env)08:21 ~ $ \r\n<\/code><\/pre>\n<h1>\u5b89\u88c5Django\u3002<\/h1>\n<p>\u4f7f\u7528pip install\u547d\u4ee4\u5b89\u88c5Django &#8211; \u7528pip install django\u5b89\u88c5Django\u3002<\/p>\n<pre class=\"post-pre\"><code>(env)08:21 ~ $ pip install django \r\nCollecting django\r\nInstalling collected packages: django\r\nSuccessfully installed django-1.8.2\r\n<\/code><\/pre>\n<h1>\u521b\u5efa\u4e00\u4e2a\u9879\u76ee<\/h1>\n<p>\u4f7f\u7528\u547d\u4ee4&#8221;python manage.py startproject PROJECTNAME&#8221;\u6765\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aPROJECTNAME\u7684\u9879\u76ee\u3002<\/p>\n<pre class=\"post-pre\"><code>(env)08:27 ~ $ django-admin startproject djexample\r\n(env)08:27 ~ $ \r\n<\/code><\/pre>\n<h1>\u6267\u884csyncdb<\/h1>\n<p>\u5207\u6362\u5230\u5df2\u521b\u5efa\u9879\u76ee\u7684\u76ee\u5f55\u3002<\/p>\n<pre class=\"post-pre\"><code>(env)08:34 ~ $ cd djexample\/\r\n<\/code><\/pre>\n<p>\u6682\u65f6\u8fdb\u884csyncdb\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code>(env)08:35 ~\/djexample $ python manage.py syncdb\r\n\/home\/TakesxiSximada\/env\/lib\/python3.4\/site-packages\/django\/core\/management\/commands\/syncdb.py:24: RemovedInDjango19Warning: The sync\r\ndb command will be removed in Django 1.9\r\n  warnings.warn(\"The syncdb command will be removed in Django 1.9\", RemovedInDjango19Warning)\r\nOperations to perform:\r\n  Synchronize unmigrated apps: staticfiles, messages\r\n  Apply all migrations: auth, admin, contenttypes, sessions\r\nSynchronizing apps without migrations:\r\n  Creating tables...\r\n    Running deferred SQL...\r\n  Installing custom SQL...\r\nRunning migrations:\r\n  No migrations to apply.\r\nYou have installed Django's auth system, and don't have any superusers defined.\r\nWould you like to create one now? (yes\/no): yes\r\nUsername (leave blank to use 'takesxisximada'): ADMINISTORATOR_NAME\r\nEmail address: your.email@mail.address   \r\nPassword: \r\nPassword (again): \r\nSuperuser created successfully.\r\n(env)08:35 ~\/djexample $ \r\n<\/code><\/pre>\n<h1>\u5c06\u5176\u5728\u7f51\u7edc\u4e0a\u516c\u5f00<\/h1>\n<h2>\u5e94\u7528\u7a0b\u5e8f\u7684\u8bbe\u7f6e<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/22-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2015-06-28 17.41.11.png\" \/><\/div>\n<p>\u9009\u62e9\u8981\u4f7f\u7528\u7684Web\u6846\u67b6\u3002<br \/>\n\u867d\u7136\u6709Django\uff0c\u4f46\u9009\u62e9\u5b83\u5c06\u5bfc\u81f4\u4f7f\u7528Python2.7\u548cDjango1.6\uff0c\u56e0\u6b64\u9009\u62e9\u624b\u52a8\u914d\u7f6e\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/24-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2015-06-28 17.41.19.png\" \/><\/div>\n<p>\u9009\u62e9Python\u7684\u7248\u672c\u3002\u53ea\u80fd\u9009\u62e9Python3.4\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/26-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2015-06-28 17.41.25.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/27-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2015-06-28 17.41.32.png\" \/><\/div>\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u5df2\u7ecf\u80fd\u591f\u5728PythonAnywhere\u4e0a\u7ba1\u7406\u65b0\u7684djexample\u3002<\/p>\n<h2>\u865a\u62df\u73af\u5883\u7684\u914d\u7f6e<\/h2>\n<p>\u6309\u201c\u8f93\u5165\u81ea\u5b9a\u4e49\u7684virtualenv\u8def\u5f84\u201d\u6309\u94ae\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u4f7f\u7528\u81ea\u5df1\u521b\u5efa\u7684virtualenv\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/31-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2015-06-28 17.43.14.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/32-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2015-06-28 17.44.32.png\" \/><\/div>\n<h2>\u914d\u7f6ewsgi\u6587\u4ef6<\/h2>\n<p>\u56e0\u4e3a\u88ab\u8bfb\u53d6\u7684WSGI\u6587\u4ef6\u662f\u56fa\u5b9a\u7684\uff0c\u6240\u4ee5\u6211\u4eec\u5c06\u66ff\u6362\u4f4d\u4e8e\/var\/www\u76ee\u5f55\u4e0b\u7684WSGI\u6587\u4ef6\u3002<\/p>\n<p>\u6682\u65f6\u5148\u5907\u4efd\u65e7\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>(env)08:55 ~\/djexample $ cp \/var\/www\/takesxisximada_pythonanywhere_com_wsgi.py \/var\/www\/takesxisximada_pythonanywhere_com_wsgi.py.old \r\n(env)08:55 ~\/djexample $ \r\n<\/code><\/pre>\n<p>\u5c06djexample\u7684wsgi.py\u539f\u5c01\u4e0d\u52a8\u5730\u590d\u5236\u5230\/var\/www\u76ee\u5f55\u4e0b\uff0c\u4e0e\u539f\u6587\u4ef6\u540c\u540d\u3002<\/p>\n<pre class=\"post-pre\"><code>(env)08:55 ~\/djexample $ cp djexample\/wsgi.py \/var\/www\/takesxisximada_pythonanywhere_com_wsgi.py\r\n(env)08:56 ~\/djexample $\r\n<\/code><\/pre>\n<p>\u7136\u540e\u5c06\u5176\u6539\u5199\u5982\u4e0b\u3002<\/p>\n<pre class=\"post-pre\"><code>\"\"\"\r\nWSGI config for djexample project.\r\nIt exposes the WSGI callable as a module-level variable named ``application``.\r\nFor more information on this file, see\r\nhttps:\/\/docs.djangoproject.com\/en\/1.8\/howto\/deployment\/wsgi\/\r\n\"\"\"\r\nimport os\r\nimport sys\r\nfrom django.core.wsgi import get_wsgi_application\r\npath = '\/home\/TakesxiSximada\/djexample'\r\nif path not in sys.path:\r\n    sys.path.append(path)\r\n\r\nos.environ['DJANGO_SETTINGS_MODULE'] = 'djexample.settings'\r\napplication = get_wsgi_application()\r\n<\/code><\/pre>\n<p>\u5b9e\u9645\u4e0a\uff0c\u6211\u52a0\u5165\u4e86\u4ee5\u4e0b\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code>path = '\/home\/TakesxiSximada\/djexample'\r\nif path not in sys.path:\r\n    sys.path.append(path)\r\n\r\nos.environ['DJANGO_SETTINGS_MODULE'] = 'djexample.settings'\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/43-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2015-06-28 18.45.57.png\" \/><\/div>\n<h2>\u6dfb\u52a0\u9759\u6001\u6587\u4ef6\u7684\u914d\u7f6e<\/h2>\n<h2>\u5728settings.py\u4e2d\u6dfb\u52a0STATIC_ROOT\u3002<\/h2>\n<pre class=\"post-pre\"><code>(env)09:47 ~\/djexample $ tail djexample\/settings.py \r\nUSE_L10N = True\r\n\r\nUSE_TZ = True\r\n\r\n# Static files (CSS, JavaScript, Images)\r\n# https:\/\/docs.djangoproject.com\/en\/1.8\/howto\/static-files\/\r\nSTATIC_URL = '\/static\/'\r\nSTATIC_ROOT = os.path.join(BASE_DIR, 'static')\r\n<\/code><\/pre>\n<h2>\u5728urls.py\u4e2d\u6dfb\u52a0\u9759\u6001\u6587\u4ef6\u7684\u914d\u7f6e<\/h2>\n<pre class=\"post-pre\"><code>(env)09:48 ~\/djexample $ cat djexample\/urls.py \r\nfrom django.conf.urls import include, url\r\nfrom django.contrib import admin\r\nfrom django.conf import settings\r\nfrom django.conf.urls.static import static\r\nurlpatterns = [\r\n    url(r'^admin\/', include(admin.site.urls)),\r\n] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)\r\n<\/code><\/pre>\n<h2>\u8fdb\u884ccollectstatic\u64cd\u4f5c<\/h2>\n<p>\u4f7f\u7528collectstatic\u547d\u4ee4\u6765\u6536\u96c6\u9759\u6001\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>(env)09:50 ~\/djexample $ python manage.py collectstatic                                                                                     \r\nYou have requested to collect static files at the destination\r\nlocation as specified in your settings:\r\n    \/home\/TakesxiSximada\/djexample\/static\r\nThis will overwrite existing files!\r\nAre you sure you want to do this?\r\nType 'yes' to continue, or 'no' to cancel: yes\r\n~\u7701\u7565~\r\n(env)09:50 ~\/djexample $ \r\n<\/code><\/pre>\n<h1>\u8bbf\u95ee\u7ba1\u7406\u754c\u9762<\/h1>\n<h2>\u91cd\u65b0\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/54-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2015-06-28 18.51.37.png\" \/><\/div>\n<h2>\u770b\u4e00\u770b<\/h2>\n<p>\u8bbf\u95eehttp:\/\/takesxisximada.pythonanywhere.com\/admin\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/57-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2015-06-28 18.52.43.png\" \/><\/div>\n<p>\u592a\u597d\u4e86\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0d\u540c\u7248\u672c\u3002 Python: 3.4.0 &nbsp; Django: 1.8.2 \u521b\u5efa\u4e00\u4e2a\u9002\u7528\u4e8epython3 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-49919","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>\u5728PythonAnywhere\u4e0a\u8fd0\u884cDjango - 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\/\u5728pythonanywhere\u4e0a\u8fd0\u884cdjango\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728PythonAnywhere\u4e0a\u8fd0\u884cDjango\" \/>\n<meta property=\"og:description\" content=\"\u4e0d\u540c\u7248\u672c\u3002 Python: 3.4.0 &nbsp; Django: 1.8.2 \u521b\u5efa\u4e00\u4e2a\u9002\u7528\u4e8epython3 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728pythonanywhere\u4e0a\u8fd0\u884cdjango\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-14T09:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T23:05:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/4-0.png\" \/>\n<meta name=\"author\" content=\"\u97f5, \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=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \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\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/\",\"name\":\"\u5728PythonAnywhere\u4e0a\u8fd0\u884cDjango - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-12-14T09:30:00+00:00\",\"dateModified\":\"2024-05-03T23:05:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728PythonAnywhere\u4e0a\u8fd0\u884cDjango\"}]},{\"@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\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728PythonAnywhere\u4e0a\u8fd0\u884cDjango - 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\/\u5728pythonanywhere\u4e0a\u8fd0\u884cdjango\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728PythonAnywhere\u4e0a\u8fd0\u884cDjango","og_description":"\u4e0d\u540c\u7248\u672c\u3002 Python: 3.4.0 &nbsp; Django: 1.8.2 \u521b\u5efa\u4e00\u4e2a\u9002\u7528\u4e8epython3 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728pythonanywhere\u4e0a\u8fd0\u884cdjango\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-14T09:30:00+00:00","article_modified_time":"2024-05-03T23:05:13+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8e52913a08637a6d5521\/4-0.png"}],"author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/","name":"\u5728PythonAnywhere\u4e0a\u8fd0\u884cDjango - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-12-14T09:30:00+00:00","dateModified":"2024-05-03T23:05:13+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728PythonAnywhere\u4e0a\u8fd0\u884cDjango"}]},{"@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\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8pythonanywhere%e4%b8%8a%e8%bf%90%e8%a1%8cdjango%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\/49919","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=49919"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/49919\/revisions"}],"predecessor-version":[{"id":96848,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/49919\/revisions\/96848"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=49919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=49919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=49919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}