{"id":492,"date":"2017-01-02T14:37:21","date_gmt":"2017-01-02T05:37:21","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2017\/01\/02\/anacondaspyderdjango_rest\/"},"modified":"2017-01-02T14:37:21","modified_gmt":"2017-01-02T05:37:21","slug":"anacondaspyderdjango_rest","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2017\/01\/02\/anacondaspyderdjango_rest\/","title":{"rendered":"Anaconda\u3068Spyder\u3067Django REST \u958b\u767a\u74b0\u5883\u3092\u6574\u3048\u308b"},"content":{"rendered":"<p>Django \u3067 REST\u306aAPI\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u306a\u304b\u306a\u304b\u9762\u5012\u3060\u3063\u305f\u6c17\u304c\u3059\u308b\u304c\u3001REST framework \u306a\u3093\u3066\u3082\u306e\u304c\u3042\u308b\u306e\u3092\u77e5\u3063\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u308b\u3002Eclipse+PyDev\u74b0\u5883\u306b\u6163\u308c\u3066\u3044\u305f\u306e\u3060\u304c\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4ee5\u5916\u3067Python\u3092\u4f7f\u3046\u306e\u306b\u3001Anaconda\u304c\u304a\u3082\u3057\u308d\u305d\u3046\u306a\u306e\u3067\u74b0\u5883\u69cb\u7bc9\u3092\u8a66\u307f\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/Python%E3%81%AB%E3%82%88%E3%82%8BWeb%E3%82%B9%E3%82%AF%E3%83%AC%E3%82%A4%E3%83%94%E3%83%B3%E3%82%B0-Ryan-Mitchell\/dp\/4873117615\/ref=as_li_ss_il?ie=UTF8&amp;qid=1483335194&amp;sr=8-2&amp;keywords=Web+Scraping&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=63f5c6a765cdeafc9563d5f2cedb9ce8\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4873117615&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=4873117615\" width=\"1\" height=\"1\"> <\/p>\n<blockquote>\n<p>\u300cWeb\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u300d\u3068\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u6a5f\u68b0\u7684\u306b\u96c6\u3081\u3001\u5fc5\u8981\u306a\u60c5\u5831\u3092\u62bd\u51fa\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u3053\u3068\u3002<br \/>\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u3060\u3051\u3067\u306f\u9650\u3089\u308c\u305f\u60c5\u5831\u3057\u304b\u96c6\u3081\u3089\u308c\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u6280\u8853\u3092\u4f7f\u3048\u3070\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306e\u81a8\u5927\u306a\u60c5\u5831\u306e\u4e2d\u304b\u3089\u672c\u5f53\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u5165\u624b\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/blockquote>\n<h2>1.\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p><a title=\"https:\/\/www.continuum.io\/downloads\" href=\"https:\/\/www.continuum.io\/downloads\">https:\/\/www.continuum.io\/downloads<\/a><\/p>\n<p>\u304b\u3089\u3001Windows\u7528\u306e\u30a4\u30f3\u30b9\u30c8\u30e9\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a6\u30a3\u30b6\u30fc\u30c9\u306b\u5f93\u3044\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<h2>2.\u4eee\u60f3\u74b0\u5883\u306e\u69cb\u7bc9<\/h2>\n<p><a title=\"https:\/\/docs.continuum.io\/anaconda\/navigator-tutorial#navigator-basic-workflow\" href=\"https:\/\/docs.continuum.io\/anaconda\/navigator-tutorial#navigator-basic-workflow\">https:\/\/docs.continuum.io\/anaconda\/navigator-tutorial#navigator-basic-workflow<\/a><\/p>\n<h3>2.1 \u4f5c\u6210<\/h3>\n<p>Anaconda Navigator \u3092\u8d77\u52d5\u3057\u5de6\u30da\u30a4\u30f3\u3067Environment\u3092\u9078\u629e\u3057Create\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env01_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"anaconda_env01\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"anaconda_env01\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env01_thumb.jpg\" width=\"305\" height=\"311\"><\/a><\/p>\n<p>\u74b0\u5883\u540d\u3092\u5165\u529b\u3001Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057Create<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env02_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"anaconda_env02\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"anaconda_env02\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env02_thumb.jpg\" width=\"296\" height=\"178\"><\/a><\/p>\n<p>\u74b0\u5883\u304c\u4f5c\u6210\u3055\u308c\u305f\u3002pip\u306a\u3069\u3001\u6700\u4f4e\u9650\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u5c0e\u5165\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env03_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"anaconda_env03\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"anaconda_env03\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env03_thumb.jpg\" width=\"460\" height=\"262\"><\/a><\/p>\n<h3>2.2 Django\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u65b0\u898f\u306b\u4f5c\u6210\u3057\u305f\u74b0\u5883\u3092\u771f\u3093\u4e2d\u306e\u30da\u30a4\u30f3\u3067\u9078\u629e\u3057\u3001\u53f3\u5074\u3067ALL\u3092\u9078\u629e\u3057\u30ad\u30fc\u30ef\u30fc\u30c9\u306bdjango \u3092\u5165\u529bApply\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env04_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"anaconda_env04\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"anaconda_env04\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env04_thumb.jpg\" width=\"472\" height=\"269\"><\/a><\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env05_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"anaconda_env05\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"anaconda_env05\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env05_thumb.jpg\" width=\"244\" height=\"195\"><\/a><\/p>\n<h3>2.3 \u4eee\u60f3\u74b0\u5883\u306e\u78ba\u8a8d<\/h3>\n<p>\u74b0\u5883\u306e\u4e09\u89d2\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u8d77\u52d5\u3067\u304d\u308b\u3002<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env06_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"anaconda_env06\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"anaconda_env06\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env06_thumb.jpg\" width=\"355\" height=\"196\"><\/a><\/p>\n<p>\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u3001venv \u306e\u74b0\u5883\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<p>pip freeze \u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u78ba\u8a8d<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env07_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"anaconda_env07\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"anaconda_env07\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env07_thumb.jpg\" width=\"554\" height=\"175\"><\/a><\/p>\n<h2>3. Spyder \u306e\u8d77\u52d5<\/h2>\n<h3>3.1 Spyder\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Anaconda Navigator\u306e\u5de6\u30da\u30a4\u30f3\u304b\u3089Home\u3092\u9078\u629e\u3057\u3001Applications on \u306b\u3066\u3001\u4f5c\u6210\u3057\u305f\u74b0\u5883\u3092\u9078\u629e\u3002Spyder \u306e Install \u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u3066\u3001Spyder\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3002<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env08_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"anaconda_env08\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"anaconda_env08\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env08_thumb.jpg\" width=\"374\" height=\"275\"><\/a><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u308b\u3068\u3001Lanch \u30dc\u30bf\u30f3\u306b\u306a\u308b\u306e\u3067\u3001\u62bc\u4e0b\u3057\u3066\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<h3>3.2 Django\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u78ba\u8a8d<\/h3>\n<p>\u8d77\u52d5\u3057\u305f\u3089\u3001Django\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5229\u7528\u53ef\u80fd\u304b\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3002import django \u3068\u3057\u3066\u3001F9\u3092\u62bc\u4e0b\u3059\u308b\u3068\u3001\u305d\u306e\u884c\u3060\u3051\u5b9f\u884c\u3055\u308c\u308b\u3002\u30a8\u30e9\u30fc\u304c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3002\u300d<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env09_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"anaconda_env09\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"anaconda_env09\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/anaconda_env09_thumb.jpg\" width=\"439\" height=\"313\"><\/a><\/p>\n<h2>4.Django REST \u74b0\u5883\u306e\u69cb\u7bc9<\/h2>\n<h3>4.1 \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p><a title=\"http:\/\/www.django-rest-framework.org\/#installation\" href=\"http:\/\/www.django-rest-framework.org\/#installation\">http:\/\/www.django-rest-framework.org\/#installation<\/a><\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_rest01_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"django_rest01\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"django_rest01\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_rest01_thumb.jpg\" width=\"347\" height=\"196\"><\/a><\/p>\n<p>Anaconda Navigator \u306eEnvironment \u306b\u623b\u3063\u3066\u3001\u4f5c\u6210\u3057\u305f\u4eee\u60f3\u74b0\u5883(venv) \u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001pip \u306b\u3066\u5bfe\u8c61\u306e\u4eee\u60f3\u74b0\u5883\u306b\u95a2\u4fc2\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre class=\"prettyprint linenums\">pip install djangorestframework\r\npip install markdown       # Markdown support for the browsable API.\r\npip install django-filter  # Filtering support\r\n<\/pre>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_rest02_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"django_rest02\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"django_rest02\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_rest02_thumb.jpg\" width=\"457\" height=\"221\"><\/a><\/p>\n<h2>5.Django REST \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/h2>\n<h3>5.1 Spyder\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/h3>\n<p>Spyder \u30e1\u30cb\u30e5\u30fc Projects &#8211; New Project \u304b\u3089\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001Spyder \u304c\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u914d\u4e0b\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u7ba1\u7406\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/spyder_project01_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"spyder_project01\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"spyder_project01\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/spyder_project01_thumb.jpg\" width=\"414\" height=\"192\"><\/a><\/p>\n<h3>5.2 Django\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092Spyder\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f5c\u6210<\/h3>\n<p>\u4e0a\u8a18\u3067\u4f5c\u6210\u3057\u305fSpyder\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u3001Spyder \u30e1\u30cb\u30e5\u30fc \u8868\u793a &#8211; \u30da\u30a4\u30f3 &#8211; \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc \u306b\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u958b\u304f\u306a\u3069\u3057\u3066\u3001\u5b9f\u969b\u306e\u30d1\u30b9\u3092\u53d6\u5f97\u3002<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/spyder_project02_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"spyder_project02\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"spyder_project02\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/spyder_project02_thumb.jpg\" width=\"336\" height=\"196\"><\/a><\/p>\n<p>\u518d\u5ea6\u3001Anaconda Navigator \u306eEnvironment \u306b\u623b\u3063\u3066\u3001\u4f5c\u6210\u3057\u305f\u4eee\u60f3\u74b0\u5883(venv) \u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001Django \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"prettyprint linenums\">&gt;django-admin.py startproject restsample<\/pre>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/spyder_project03_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"spyder_project03\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"spyder_project03\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/spyder_project03_thumb.jpg\" width=\"525\" height=\"91\"><\/a><\/p>\n<p>django \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u305f\u3002<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/spyder_project04_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"spyder_project04\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"spyder_project04\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/spyder_project04_thumb.jpg\" width=\"493\" height=\"295\"><\/a><\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_rest03_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"django_rest03\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"django_rest03\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_rest03_thumb.jpg\" width=\"525\" height=\"297\"><\/a><\/p>\n<h2>6.Django \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8d77\u52d5<\/h2>\n<h3>6.1 \u8d77\u52d5\u8a2d\u5b9a<\/h3>\n<p>manage.py \u3092\u958b\u3044\u3066\u3001Spyder \u30e1\u30cb\u30e5\u30fc &#8211; \u5b9f\u884c &#8211; \u8a2d\u5b9a \u3092\u9078\u629e\u3002<\/p>\n<ul>\n<li>\u5b9f\u884c\u3059\u308b\u8a2d\u5b9a\u3092\u9078\u629e : manage.py\n<li>\u30b3\u30f3\u30bd\u30fc\u30eb : Python\u306b\u7279\u5316\u3057\u305f\u65b0\u898f\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u5b9f\u884c\n<li>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3 : \u30c1\u30a7\u30c3\u30afON\u306b\u3057\u3001runserver \u3092\u5165\u529b(\u5fc5\u8981\u306b\u5fdc\u3058\u30dd\u30fc\u30c8\u756a\u53f7)<\/li>\n<\/ul>\n<blockquote>\n<p>6.3 \u8ab2\u984c\u3068\u3057\u305f\u304c\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u505c\u6b62\u304cSpyder\u4e0a\u304b\u3089\u3046\u307e\u304f\u3067\u304d\u306a\u3044\u3002\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u3001\u73fe\u5728\u306ePython\/IPython \u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u5b9f\u884c\u3092\u6307\u5b9a\u3057\u3066\u3082\u3001IPython \u30b3\u30f3\u30bd\u30fc\u30eb\u3060\u3068\u305d\u3082\u305d\u3082\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u304c\u3046\u307e\u304f\u51e6\u7406\u3055\u308c\u306a\u3044\u3002Python \u30b3\u30f3\u30bd\u30fc\u30eb\u3060\u3068\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u51e6\u7406\u3055\u308c\u308b\u304c\u3001\u3084\u306f\u308a\u30d7\u30ed\u30bb\u30b9\u306e\u505c\u6b62\u304c\u3067\u304d\u306a\u3044\u3002(2\u3064\u30d7\u30ed\u30bb\u30b9\u304c\u3067\u304d\u306a\u3044\u3060\u3051\u3053\u3061\u3089\u304c\u307e\u3057\u304b\uff1f)<\/p>\n<\/blockquote>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_run01_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"django_run01\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"django_run01\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_run01_thumb.jpg\" width=\"393\" height=\"317\"><\/a><\/p>\n<h3>6.2 \u8d77\u52d5\u304a\u3088\u3073\u30c7\u30d0\u30c3\u30b0<\/h3>\n<p>\u5b9f\u884c\u304a\u3088\u3073\u3001\u30c7\u30d0\u30c3\u30b0\u5b9f\u884c\u53ef\u80fd<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_run02_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"django_run02\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"django_run02\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_run02_thumb.jpg\" width=\"459\" height=\"304\"><\/a><\/p>\n<h3>6.3 \u8ab2\u984c<\/h3>\n<p>\u8d77\u52d5\u3057\u305fWeb\u30b5\u30fc\u30d0\u30fc\u30d7\u30ed\u30bb\u30b9\u3092\u3001Spyder\u304b\u3089\u505c\u6b62\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u505c\u6b62\u3067\u304d\u306a\u3044\u3002<\/p>\n<p>\u8868\u9762\u4e0a\u306f\u505c\u6b62\u72b6\u614b\u306a\u306e\u3060\u304c\u3001Web\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u308b\u72b6\u614b\u3002<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_run04_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"django_run04\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"django_run04\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_run04_thumb.jpg\" width=\"141\" height=\"71\"><\/a><\/p>\n<p>\u30d7\u30ed\u30bb\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001 -u \u30aa\u30d7\u30b7\u30e7\u30f3\u3042\u308a\u3068 \u306a\u3057\u3068\u3067\u30012\u3064\u4f5c\u6210\u3055\u308c\u3066\u3044\u3066\u3001Spyder\u4e0a\u304b\u3089\u505c\u6b62\u3057\u3066\u3082\u3001-u \u30aa\u30d7\u30b7\u30e7\u30f3\u4ed8\u304d\u306e\u30d7\u30ed\u30bb\u30b9\u3057\u304b\u505c\u6b62\u3055\u308c\u306a\u3044\u3002<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_run03_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"django_run03\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"django_run03\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/Anaconda-_836A\/django_run03_thumb.jpg\" width=\"889\" height=\"133\"><\/a><\/p>\n<pre class=\"prettyprint linenums\">-u     : unbuffered binary stdout and stderr; also PYTHONUNBUFFERED=x\r\n         see man page for details on internal buffering relating to '-u'<\/pre>\n<p>\u3046\u30fc\u3093\u3002\u307e\u3041\u6700\u4f4e\u9650\u3002<\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/%E5%85%A5%E9%96%80-Python-3-Bill-Lubanovic\/dp\/4873117380\/ref=as_li_ss_il?ie=UTF8&amp;qid=1483335121&amp;sr=8-1&amp;keywords=python&amp;linkCode=li3&amp;tag=typea09-22&amp;linkId=e3f29f3800212f4751adf71801dc4ddd\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4873117380&amp;Format=_SL250_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li3&amp;o=9&amp;a=4873117380\" width=\"1\" height=\"1\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Django \u3067 REST\u306aAPI\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u306a\u304b\u306a\u304b\u9762\u5012\u3060\u3063\u305f\u6c17\u304c\u3059\u308b\u304c\u3001REST framework \u306a\u3093\u3066\u3082\u306e\u304c\u3042\u308b\u306e\u3092\u77e5\u3063\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u308b\u3002Eclipse+PyDev\u74b0\u5883\u306b\u6163\u308c\u3066\u3044\u305f\u306e\u3060\u304c\u3001Web\u30a2\u30d7\u30ea\u30b1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[95,29,20],"tags":[],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-anaconda","category-django","category-python"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/492\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}