{"id":507,"date":"2012-04-14T03:10:00","date_gmt":"2012-04-13T18:10:00","guid":{"rendered":""},"modified":"2021-06-04T17:24:48","modified_gmt":"2021-06-04T08:24:48","slug":"dreamhostdjango","status":"publish","type":"post","link":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/2012\/04\/dreamhostdjango.html","title":{"rendered":"DreamHost\u3067Django\u3092\u4f7f\u3046\u65b9\u6cd5"},"content":{"rendered":"<p>\u6d77\u5916\u306e\u6700\u5f37\u30b5\u30fc\u30d0\u30fcDreamHost\u3067Django\u3092\u4f7f\u3046\u65b9\u6cd5\u304c\u5206\u304b\u3063\u305f\u306e\u3067\u3001\u66f8\u304d\u7559\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306a\u624b\u9806\u306f\u3053\u3053\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\" target=\"_blank\" rel=\"noopener\">https:\/\/help.dreamhost.com\/hc\/en-us<\/a><\/p>\n<p>\u3061\u3087\u3063\u3068\u3084\u3084\u3053\u3057\u3044\u306e\u304c\u3001Step2\u306e2\u3060\u3068\u601d\u3044\u307e\u3059\u3002\/public\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7528\u610f\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u300cManage Domain\u300d\u2192\u300cUsers, Files, and Paths\u300d\u2192\u300cWeb directory:\u300d\u306e\u9805\u76ee\u3092\u300c\/home\/username\/aaabbbccc.com\/public\u300d\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002aaabbbccc\u306e\u90e8\u5206\u3092\u5404\u81ea\u306e\u30c9\u30e1\u30a4\u30f3\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306e\u6bb5\u968e\u306eStep4\u3067\u3082\u5f15\u3063\u304b\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3088\u3046\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<div style=\"background-color: lightgray; padding: 10px;\">\n<pre><code>\r\nwget http:\/\/wiki.dreamhost.com\/django-setup.py\r\npython django-setup.py\r\n<\/code><\/pre>\n<\/div>\n<p>django-setup.py\u3068\u3044\u3046\u306e\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8d77\u52d5\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u8d77\u52d5\u3059\u308b\u5834\u6240\u304c\u3061\u3087\u3063\u3068\u554f\u984c\u3067\u3001\u3055\u304d\u307b\u3069\u4f5c\u6210\u3057\u305f\/public\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e0a\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002ls\u30b3\u30de\u30f3\u30c9\u3067public\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u6240\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u6700\u5f8c\u306e\u96e3\u95a2\u304c\u3042\u308a\u307e\u3059\u3002django-setup.py\u3092\u3046\u307e\u304f\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u51fa\u3066\u304f\u308b\u3068\u304a\u308a\u306b\u8a2d\u5b9a\u9805\u76ee\u3092\u8a18\u5165\u3057\u3066\u3044\u3051\u3070\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u6700\u5f8c\u306b\u300cCreating project framework\u2026 \u00a0oops, django-admin failed to run!\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001django-setup.py\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u306e126\u884c\u76ee\u304c\u539f\u56e0\u3067\u3059\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u4e0b\u3055\u3044\u3002\u62e1\u5f35\u5b50\u304c\u629c\u3051\u3066\u3044\u308b\u306e\u3067\u3001\u300c.py\u300d\u3092\uff12\u30ab\u6240\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u4fee\u6b63\u524d\uff1a<\/p>\n<pre><code>if os.spawnl(os.P_WAIT, \"\/usr\/bin\/django-admin\", \"django-admin\", \"startproject\", projname) != 0:<\/code><\/pre>\n<\/p>\n<p>\u4fee\u6b63\u5f8c\uff1a<\/p>\n<pre><code>if os.spawnl(os.P_WAIT, \"\/usr\/bin\/django-admin.py\", \"django-admin.py\", \"startproject\", projname) != 0:<\/code><\/pre>\n<\/p>\n<p>\u4fee\u6b63\u3057\u305f\u5f8c\u306b\u3082\u3046\u4e00\u5ea6django-setup.py\u3092\u8d77\u52d5\u3059\u308c\u3070\u3046\u307e\u304f\u3044\u304f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>DreamHost\u306f\u3001\u30de\u30b8\u3067\u3059\u3054\u3044\u3002\u6700\u5f37\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3060\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6d77\u5916\u306e\u6700\u5f37\u30b5\u30fc\u30d0\u30fcDreamHost\u3067Django\u3092\u4f7f\u3046\u65b9\u6cd5\u304c\u5206\u304b\u3063\u305f\u306e\u3067\u3001\u66f8\u304d\u7559\u3081\u3066\u304a\u304d\u307e\u3059\u3002 \u57fa\u672c\u7684\u306a\u624b\u9806\u306f\u3053\u3053\u306b\u66f8 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":598,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75],"tags":[53,65,33],"class_list":["post-507","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-django","tag-dreamhost","tag-python"],"_links":{"self":[{"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/posts\/507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/comments?post=507"}],"version-history":[{"count":0,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/posts\/507\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/media\/598"}],"wp:attachment":[{"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/media?parent=507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/categories?post=507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/tags?post=507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}