{"id":502,"date":"2017-05-01T16:49:35","date_gmt":"2017-05-01T07:49:35","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2017\/05\/01\/anaconda_eclipsepydev_visual_studio_code_django_rest\/"},"modified":"2017-05-01T16:49:35","modified_gmt":"2017-05-01T07:49:35","slug":"anaconda_eclipsepydev_visual_studio_code_django_rest","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2017\/05\/01\/anaconda_eclipsepydev_visual_studio_code_django_rest\/","title":{"rendered":"Anaconda \u3084\u3081\u3066 Eclipse+PyDev \u306b\u3057\u305f\u3051\u3069\u3084\u3063\u3071\u308aVisual Studio Code \u306bDjango REST \u74b0\u5883\u69cb\u7bc9"},"content":{"rendered":"<p><a href=\"https:\/\/www.amazon.co.jp\/%E3%81%AF%E3%81%98%E3%82%81%E3%81%A6%E3%81%AEVisual-Studio-Code-I%E3%83%BBO-BOOKS\/dp\/4777519481\/ref=as_li_ss_il?ie=UTF8&amp;qid=1493624856&amp;sr=8-1&amp;keywords=Visual+Studio+Code&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=279c2d116e3de411298d87071f5d8925\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4777519481&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=\"margin: 0px; border-style: none !important;\" border=\"0\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=4777519481\" width=\"1\" height=\"1\" \/><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/04\/29\/anaconda_pydev_django_rest\">Anaconda \u304c\u30a8\u30e9\u30fc\u3067\u3069\u3046\u3057\u3088\u3046\u3082\u306a\u3044\u306e\u3067\u3001Eclipse+PyDev\u306bDjango REST framework\u306e\u958b\u767a\u74b0\u5883\u3092\u623b\u3057\u305f<\/a>\u304c\u3001Visual Studio Code \u304c\u5341\u5206\u4f7f\u3048\u305d\u3046\u306a\u306e\u3067\u3001Visual Studio Code \u306b\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/04\/29\/anaconda_pydev_django_rest\">venv \u4eee\u60f3\u74b0\u5883\u306f\u5171\u7528\u3059\u308b\u306e\u3067\u3053\u3061\u3089\u3092\u53c2\u7167<\/a>\u3001Eclipse\u3068Pydev\u306e\u74b0\u5883\u69cb\u7bc9\u306f\u305b\u305a\u306b\u3001\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\u3092Visual Code \u3067\u958b\u304d\u3001\u7aef\u672b\u304b\u3089\u3001venv \u4eee\u60f3\u74b0\u5883\u3092\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8\u3002<\/p>\n<p>\u305d\u306e\u3042\u3068\u3001Django \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p><a title=\"https:\/\/docs.djangoproject.com\/en\/1.11\/intro\/tutorial01\/\" href=\"https:\/\/docs.djangoproject.com\/en\/1.11\/intro\/tutorial01\/\">https:\/\/docs.djangoproject.com\/en\/1.11\/intro\/tutorial01\/<\/a><\/p>\n<pre class=\"prettyprint linenums\">(django) PS C:\\workspaces\\vscode\\django_api_lesson&gt; django-admin startproject firstapi<\/pre>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Django-API-vs-Code_E5D3\/djangoapi_code01.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"djangoapi_code01\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" border=\"0\" alt=\"djangoapi_code01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Django-API-vs-Code_E5D3\/djangoapi_code01_thumb.jpg\" width=\"263\" height=\"274\" \/><\/a><\/p>\n<p>\u8a66\u3057\u306bDjango \u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"prettyprint linenums\">(django) PS C:\\workspaces\\vscode\\django_api_lesson\\firstapi&gt; python .\\manage.py runserver\r\nPerforming system checks...\r\n\r\nSystem check identified no issues (0 silenced).\r\n\r\nYou have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, con\r\ntenttypes, sessions.\r\nRun 'python manage.py migrate' to apply them.\r\nMay 01, 2017 - 16:24:30\r\nDjango version 1.11, using settings 'firstapi.settings'\r\nStarting development server at http:\/\/127.0.0.1:8000\/\r\nQuit the server with CTRL-BREAK.<\/pre>\n<p>OK<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Django-API-vs-Code_E5D3\/djangoapi_code02.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"djangoapi_code02\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" border=\"0\" alt=\"djangoapi_code02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Django-API-vs-Code_E5D3\/djangoapi_code02_thumb.jpg\" width=\"324\" height=\"239\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/04\/29\/anaconda_pydev_django_rest\">Anaconda \u3084\u3081\u3066 PyDev \u3067Django REST \u8a2d\u5b9a<\/a> \u3068\u540c\u69d8\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u7de8\u96c6\u3057\u305f\u306e\u3061\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"prettyprint linenums\">(django) PS C:\\workspaces\\vscode\\django_api_lesson\\firstapi&gt; python .\\manage.py migrate\r\nOperations to perform:\r\n  Apply all migrations: admin, auth, contenttypes, sessions\r\nRunning migrations:\r\n  Applying contenttypes.0001_initial... OK\r\n  Applying auth.0001_initial... OK\r\n  Applying admin.0001_initial... OK\r\n  Applying admin.0002_logentry_remove_auto_add... OK\r\n  Applying contenttypes.0002_remove_content_type_name... OK\r\n  Applying auth.0002_alter_permission_name_max_length... OK\r\n  Applying auth.0003_alter_user_email_max_length... OK\r\n  Applying auth.0004_alter_user_username_opts... OK\r\n  Applying auth.0005_alter_user_last_login_null... OK\r\n  Applying auth.0006_require_contenttypes_0002... OK\r\n  Applying auth.0007_alter_validators_add_error_messages... OK\r\n  Applying auth.0008_alter_user_username_max_length... OK\r\n  Applying sessions.0001_initial... OK<\/pre>\n<p>\u7ba1\u7406\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210<\/p>\n<pre class=\"prettyprint linenums\">(django) PS C:\\workspaces\\vscode\\django_api_lesson\\firstapi&gt; python .\\manage.py createsuperuser\r\nUsername (leave blank to use 'pppiroto'):\r\nEmail address: pppiroto@gmail.com\r\nPassword:\r\nPassword (again):\r\nSuperuser created successfully.<\/pre>\n<p>\u518d\u5ea6\u3001Django\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u52d5\u4f5c\u78ba\u8a8d<\/p>\n<p>OK<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Django-API-vs-Code_E5D3\/djangoapi_code03.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"djangoapi_code03\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" border=\"0\" alt=\"djangoapi_code03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Django-API-vs-Code_E5D3\/djangoapi_code03_thumb.jpg\" width=\"335\" height=\"247\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Django-API-vs-Code_E5D3\/djangoapi_code04.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"djangoapi_code04\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" border=\"0\" alt=\"djangoapi_code04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Django-API-vs-Code_E5D3\/djangoapi_code04_thumb.jpg\" width=\"339\" height=\"250\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/Lightweight-Django-Using-WebSockets-Backbone-ebook\/dp\/B00P8DQZY4\/ref=as_li_ss_il?ie=UTF8&amp;qid=1493624915&amp;sr=8-1&amp;keywords=Django+REST&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=61624cc353810e987249e57ba45de118\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=B00P8DQZY4&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=\"margin: 0px; border-style: none !important;\" border=\"0\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=B00P8DQZY4\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Anaconda \u304c\u30a8\u30e9\u30fc\u3067\u3069\u3046\u3057\u3088\u3046\u3082\u306a\u3044\u306e\u3067\u3001Eclipse+PyDev\u306bDjango REST framework\u306e\u958b\u767a\u74b0\u5883\u3092\u623b\u3057\u305f\u304c\u3001Visual Studio Code \u304c\u5341\u5206\u4f7f\u3048\u305d\u3046\u306a\u306e\u3067\u3001Visual St [&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":[29,67,96,12],"tags":[],"class_list":["post-502","post","type-post","status-publish","format-standard","hentry","category-django","category-rest","category-visual-studio-code","category-visualstudio"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/502","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=502"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/502\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}