{"id":119,"date":"2010-04-03T09:09:06","date_gmt":"2010-04-03T13:09:06","guid":{"rendered":"http:\/\/dashdrum.com\/blog\/?p=119"},"modified":"2010-04-03T14:12:17","modified_gmt":"2010-04-03T18:12:17","slug":"changing-hosts-in-dreamhost","status":"publish","type":"post","link":"https:\/\/dashdrum.com\/blog\/2010\/04\/changing-hosts-in-dreamhost\/","title":{"rendered":"Changing Hosts in Dreamhost"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/images.dreamhost.com\/landings\/logo.png\" alt=\"Dreamhost logo\" align=right hspace=11 vspace=11>Last night, <a href=\"http:\/\/dreamhost.com\">Dreamhost<\/a> moved my account to a new host.  Not a big deal, and it&#8217;s certainly understandable, but it did break my one running Django app &#8211; the <a href=\"http:\/\/gallery.gentryart.us\">Gentryart Gallery<\/a>.  Here&#8217;s what I did to fix it.<\/p>\n<p>First, as suggested in the <a href=\"http:\/\/wiki.dreamhost.com\/Server_Moves#Custom_PHP.2C_Python.2C_Ruby.2C_etc.\">Dreamhost Server Moves Page<\/a>, I recompiled Python to create a 64bit version.  While I was at it, I upgraded from v2.5.2 to v2.6.5. <a href=\"http:\/\/blog.localkinegrinds.com\/2007\/08\/20\/custom-python-installation-for-django-on-dreamhost\/\"> This great page by Ryan Kanno outlined the steps<\/a>. I just changed the version number.  I also deleted my old installation of Python so there wouldn&#8217;t be any chance of confusion there.<\/p>\n<p>Now, if I would have used the same python version and kept everything in the same locations, I would have been done.  Since I didn&#8217;t, I had a little more to do.<\/p>\n<p>Next, I needed to install all of the python packages I use.  Here&#8217;s the list:<\/p>\n<ul>\n<li>Django (of course)<\/li>\n<li><a href=\"http:\/\/sourceforge.net\/projects\/mysql-python\/\">MySQLdb<\/a> (which requires <a href=\"http:\/\/pypi.python.org\/pypi\/setuptools\">setuptools<\/a>)<\/li>\n<li><a href=\"http:\/\/www.pythonware.com\/products\/pil\/\">Python Image Library<\/a><\/li>\n<li><a href=\"http:\/\/code.google.com\/p\/django-photologue\/\">Photologue<\/a><\/li>\n<\/ul>\n<p>Following the <a href=\"http:\/\/jeffcroft.com\/blog\/2006\/may\/11\/django-dreamhost\/\">famous Jeff Croft post<\/a>, I updated the <code>admin_media<\/code> shortcut to point to the new Django files.<\/p>\n<p>And the gallery is back in business!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last night, Dreamhost moved my account to a new host. Not a big deal, and it&#8217;s certainly understandable, but it did break my one running Django app &#8211; the Gentryart Gallery. Here&#8217;s what I did to fix it. First, as suggested in the Dreamhost Server Moves Page, I recompiled Python to create a 64bit version. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/dashdrum.com\/blog\/2010\/04\/changing-hosts-in-dreamhost\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Changing Hosts in Dreamhost&#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":[],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":7,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":126,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/posts\/119\/revisions\/126"}],"wp:attachment":[{"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dashdrum.com\/blog\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}