{"id":692,"date":"2013-02-23T16:28:02","date_gmt":"2013-02-23T22:28:02","guid":{"rendered":"http:\/\/trillworks.com\/nick\/?p=692"},"modified":"2013-02-23T16:29:15","modified_gmt":"2013-02-23T22:29:15","slug":"run-django-from-intellij-idea-on-osx","status":"publish","type":"post","link":"https:\/\/trillworks.com\/nick\/2013\/02\/23\/run-django-from-intellij-idea-on-osx\/","title":{"rendered":"Run Django from IntelliJ IDEA on OSX with MySQL"},"content":{"rendered":"<p>If you try to run a Django app from within Intellij using MySQL as the storage backend, you might get the following error.<\/p>\n<pre>django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: dlopen(\/Library\/Python\/2.7\/site-packages\/MySQL_python-1.2.4b4-py2.7-macosx-10.7-intel.egg\/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib Referenced from: \/Library\/Python\/2.7\/site-packages\/MySQL_python-1.2.4b4-py2.7-macosx-10.7-intel.egg\/_mysql.so\r\n Reason: image not found\r\n<\/pre>\n<p>You&#8217;re missing the\u00a0DYLD_LIBRARY_PATH environment variable.<br \/>\nIn Intellij, go to &#8220;edit configurations&#8221;, and add this:<br \/>\n<code>DYLD_LIBRARY_PATH=\/usr\/local\/mysql\/lib\/<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you try to run a Django app from within Intellij using MySQL as the storage backend, you might get the following error. django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: dlopen(\/Library\/Python\/2.7\/site-packages\/MySQL_python-1.2.4b4-py2.7-macosx-10.7-intel.egg\/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib Referenced from: \/Library\/Python\/2.7\/site-packages\/MySQL_python-1.2.4b4-py2.7-macosx-10.7-intel.egg\/_mysql.so Reason: image not found You&#8217;re missing the\u00a0DYLD_LIBRARY_PATH environment variable. In Intellij, go to &#8220;edit configurations&#8221;, and add this: &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/trillworks.com\/nick\/2013\/02\/23\/run-django-from-intellij-idea-on-osx\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Run Django from IntelliJ IDEA on OSX with MySQL&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[],"class_list":["post-692","post","type-post","status-publish","format-standard","hentry","category-technical"],"_links":{"self":[{"href":"https:\/\/trillworks.com\/nick\/wp-json\/wp\/v2\/posts\/692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trillworks.com\/nick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trillworks.com\/nick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trillworks.com\/nick\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trillworks.com\/nick\/wp-json\/wp\/v2\/comments?post=692"}],"version-history":[{"count":8,"href":"https:\/\/trillworks.com\/nick\/wp-json\/wp\/v2\/posts\/692\/revisions"}],"predecessor-version":[{"id":699,"href":"https:\/\/trillworks.com\/nick\/wp-json\/wp\/v2\/posts\/692\/revisions\/699"}],"wp:attachment":[{"href":"https:\/\/trillworks.com\/nick\/wp-json\/wp\/v2\/media?parent=692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trillworks.com\/nick\/wp-json\/wp\/v2\/categories?post=692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trillworks.com\/nick\/wp-json\/wp\/v2\/tags?post=692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}