Saturday, January 12, 2013

How to deploy first Python Django application on Heroku


Heroku is a PaaS service which allows to host your apps in cloud. PaaS is something in layman terms, which lets you focus on code rather than managing the running environment (Hardware/Software) aspect of the web application. Affordable PHP hosting for masses was available from day one which is the kind of luxury Python, Java or other potential languages didn't enjoy. 

PaaS address this and brings affordable and free Web Application hosting to masses. Among many PaaS providers, Heroku is one of the popular  pioneer and respected member. Heroku's pricing model is generous enough to feature a free quota which is suffice to accommodate low to medium resource hungry web application. Which is a boon to hobbyist developers like me.

Nice but not without bumps...

Heroku lets you develop using Ruby, Java, Python, Node.js, Clojure, Scala and PHP (undocumented). Python is getting more populer on web with each passing day but it has went through it's own share of struggle. Django web framework helped greatly to make python popular between Web Developers. Heroku also has a very good knowledge base to help developers which works most of the time but sometimes it doesn't. Google and specially StackOverflow seem only savior at that moment. "Getting started with Django on Heroku" guide is no exception. I tumbled on few bumps and finally made it through. I assume the same would be the case for many more. To address this here is fixed guide about how to get started with Django on Heroku.

First thing first

Sign up with Heroku and download Heroku toolbelt. Heroku toolbelt is combination of heroku client, options to run your app locally and GIT VCS.

No comments:

Post a Comment