{"id":392,"date":"2009-11-18T16:25:25","date_gmt":"2009-11-18T20:25:25","guid":{"rendered":"http:\/\/www.sporks.org\/blog\/?p=392"},"modified":"2009-11-18T16:27:02","modified_gmt":"2009-11-18T20:27:02","slug":"getting-virtualized-python-django-and-mysql-working-on-os-x-snow-leopard","status":"publish","type":"post","link":"https:\/\/www.sporks.org\/blog\/?p=392","title":{"rendered":"Getting virtualized python , django, and mysql working on OS X snow leopard"},"content":{"rendered":"<p>Yesterday, I was able to\u00c2\u00a0 to get django, installed with mysql support.\u00c2\u00a0 I used several websites to get it working right.<\/p>\n<p>1) i installed mysql (64bit) from the official builds on mysql.com<\/p>\n<p>2) i installed virtualenv from setuptools. I typed the following:<\/p>\n<p style=\"padding-left: 30px;\">$ sudo easy_install virtualenv<\/p>\n<p>3)\u00c2\u00a0 I created directory for my virtual environment for python by typing following:<\/p>\n<p style=\"padding-left: 30px;\">$ virtualenv -v mydjango<\/p>\n<p>4)\u00c2\u00a0 Downloaded mysql python module from <a href=\"http:\/\/sourceforge.net\/projects\/mysql-python\/files\/\">http:\/\/sourceforge.net\/projects\/mysql-python\/files\/<\/a> placed it in mydango directory.<\/p>\n<p>5) in the shell, i went into mydango directory.<\/p>\n<p>6)\u00c2\u00a0 I then activated the virtualized python envirtonment<\/p>\n<p>7) I then\u00c2\u00a0 compiled\u00c2\u00a0 mysql driver by typing the following<\/p>\n<p style=\"padding-left: 30px;\">$ ARCHFLAGS=&#8221;-arch x86_64&#8243; python setup.py build<\/p>\n<p>8)\u00c2\u00a0 installed the driver. typed the following<\/p>\n<p style=\"padding-left: 30px;\">$ python setup.py install<\/p>\n<p>9)\u00c2\u00a0 I downloaded django and placed it in mydango directory<\/p>\n<p>10) Installed django by typing<\/p>\n<p style=\"padding-left: 30px;\">$ python setup.py install<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday, I was able to\u00c2\u00a0 to get django, installed with mysql support.\u00c2\u00a0 I used several websites to get it working right. 1) i installed mysql (64bit) from the official builds on mysql.com 2) i installed virtualenv from setuptools. I typed the following: $ sudo easy_install virtualenv 3)\u00c2\u00a0 I created directory for my virtual environment for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,46,2,10],"tags":[],"class_list":["post-392","post","type-post","status-publish","format-standard","hentry","category-programming","category-python","category-tech","category-web-development"],"_links":{"self":[{"href":"https:\/\/www.sporks.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sporks.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sporks.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sporks.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sporks.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=392"}],"version-history":[{"count":5,"href":"https:\/\/www.sporks.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":396,"href":"https:\/\/www.sporks.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions\/396"}],"wp:attachment":[{"href":"https:\/\/www.sporks.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sporks.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sporks.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}