WebApp2 for django developers

In this post lets talk a little about the webapp2 python framework.

What this post is about?

All it does is to introduce new django devs to writing a better formatted code spread over different files(like in django), while using webapp2. It will help you get started using webap2.

Who is the target audience?

I would assume you either know basic django or want to try the webapp2 framework and are out there to explore other stuff for fun. A basic understanding of how MVC works and little experience in Python is a pre-requisite. If you want to get a picture of what MVC is please move here and to learn python please follow the docs.

What/Why/How webapp2?

Webapp2 is a python framework that comes bundled along with the google app engine sdk. If you don't have a hosting provider and want to try something free(though its limited) or if you want to auto-scale app engine might sound good. There are many more reasons why it should not be preferred or why it could not compete with other PaaS solutions like EC2 etc. but that in some other post.

Why not django itself for the trial?

We are talking about webapp2 and not django, for those still interested ind django story: Well the issue has been there since the inception of appengine. App Engine Datastore provides a NoSQL schemaless object datastore, with a query engine and atomic transactions, but Django's ORM does not support NoSQL database. There have been effort's like django-nonrel but the core developers have said goodbye.

Now that i have tried to answer all the IFs and BUTs lets get our hands dirty in partII of the post.

Comments

blog comments powered by Disqus