{"id":5164,"date":"2020-07-27T20:45:29","date_gmt":"2020-07-27T12:45:29","guid":{"rendered":"https:\/\/tommykwan.com\/blog\/?p=5164"},"modified":"2020-07-27T20:54:20","modified_gmt":"2020-07-27T12:54:20","slug":"%e8%a8%ad%e7%bd%aedjango-windows%e7%89%88anaconda","status":"publish","type":"post","link":"https:\/\/tommykwan.com\/blog\/it\/%e8%a8%ad%e7%bd%aedjango-windows%e7%89%88anaconda\/","title":{"rendered":"\u8a2d\u7f6eDjango (Windows\u7248Anaconda)"},"content":{"rendered":"<h4>\u5b89\u88dd\u865b\u64ec\u74b0\u5883<\/h4>\n<p>\u958b\u555f Anaconda \u7684 CMD.exe Promopt<\/p>\n<blockquote><p>pip install virtualenv<\/p>\n<p>pip install virtualenvwrapper<\/p>\n<p>&nbsp;<\/p><\/blockquote>\n<h4>\u5b89\u88ddAnaconda<\/h4>\n<p>\u958b\u555f Anaconda \u7684 CMD.exe Promopt<\/p>\n<blockquote><p>conda install -c anaconda django<\/p><\/blockquote>\n<p>Ref:<a href=\"https:\/\/anaconda.org\/anaconda\/django\" target=\"_blank\" rel=\"noopener noreferrer\"> https:\/\/anaconda.org\/anaconda\/django<\/a><\/p>\n<p>&nbsp;<\/p>\n<div class=\"embed-container\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"ZQoBueYtZq\"><p><a href=\"https:\/\/tommykwan.com\/blog\/it\/anaconda-django-python-manage-py-runserver-error-%e7%92%b0%e5%a2%83%e8%ae%8a%e6%95%b8%e8%a8%ad%e5%ae%9a\/\">Anaconda Django &#8220;python manage.py runserver&#8221; Error (\u74b0\u5883\u8b8a\u6578\u8a2d\u5b9a)<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Anaconda Django &#8220;python manage.py runserver&#8221; Error (\u74b0\u5883\u8b8a\u6578\u8a2d\u5b9a)&#8221; &#8212; Tommy&#039;s Diaries\" src=\"https:\/\/tommykwan.com\/blog\/it\/anaconda-django-python-manage-py-runserver-error-%e7%92%b0%e5%a2%83%e8%ae%8a%e6%95%b8%e8%a8%ad%e5%ae%9a\/embed\/#?secret=ZQoBueYtZq\" data-secret=\"ZQoBueYtZq\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/div>\n<p>&nbsp;<\/p>\n<h4>\u5efa\u7f6eDjango<\/h4>\n<p>\u958b\u555f Anaconda \u7684 CMD.exe Promopt<\/p>\n<p>\u9032\u5165Python Env \u7684\u6587\u4ef6\u593e (e.g D:\\Python\\envs)<\/p>\n<blockquote><p>D:<\/p>\n<p>cd Python\\envs<\/p>\n<p>dir<\/p>\n<p>conda create &#8211;name django2 django<\/p>\n<p>conda activate django2<\/p>\n<p>conda env list<\/p>\n<p>start .<\/p>\n<p>cd django2<\/p>\n<p>django-admin startproject project_name<\/p>\n<p>cd project_name<\/p>\n<p>python manage.py runserver<\/p><\/blockquote>\n<p>\u7528Browser \u700f\u89bd http:\/\/127.0.0.1:8000\/ \u78ba\u5b9a\u662f\u5426\u6210\u529f~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88dd\u865b\u64ec\u74b0\u5883 \u958b\u555f Anaconda \u7684 CMD.exe Promopt pip install virtualenv pip install virtualenvwrapper &nbsp; \u5b89\u88ddAnaconda \u958b\u555f Anaconda \u7684 CMD.exe Promopt conda install -c anaconda django Ref: https:\/\/anaconda.org\/anaconda\/django &nbsp; Anaconda Django &#8220;python manage.py runserver&#8221; Error (\u74b0\u5883\u8b8a\u6578\u8a2d\u5b9a) &nbsp; \u5efa\u7f6eDjango \u958b\u555f Anaconda \u7684 CMD.exe Promopt \u9032\u5165Python Env \u7684\u6587\u4ef6\u593e (e.g D:\\Python\\envs) D: cd Python\\envs dir conda create &#8211;name django2 django<a class=\"read-more \" href=\"https:\/\/tommykwan.com\/blog\/it\/%e8%a8%ad%e7%bd%aedjango-windows%e7%89%88anaconda\/\" title=\"Read More\"> <span class=\"button default\">Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,28],"tags":[],"class_list":["post-5164","post","type-post","status-publish","format-standard","hentry","category-it","category-python"],"_links":{"self":[{"href":"https:\/\/tommykwan.com\/blog\/wp-json\/wp\/v2\/posts\/5164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tommykwan.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tommykwan.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tommykwan.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tommykwan.com\/blog\/wp-json\/wp\/v2\/comments?post=5164"}],"version-history":[{"count":5,"href":"https:\/\/tommykwan.com\/blog\/wp-json\/wp\/v2\/posts\/5164\/revisions"}],"predecessor-version":[{"id":5169,"href":"https:\/\/tommykwan.com\/blog\/wp-json\/wp\/v2\/posts\/5164\/revisions\/5169"}],"wp:attachment":[{"href":"https:\/\/tommykwan.com\/blog\/wp-json\/wp\/v2\/media?parent=5164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tommykwan.com\/blog\/wp-json\/wp\/v2\/categories?post=5164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tommykwan.com\/blog\/wp-json\/wp\/v2\/tags?post=5164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}