pvillega’s posterous

pvillega’s posterous

Pere Villega  //  Born in Barcelona, living in Dublin, and tagged as geek since youth. Developer in the path to becoming a software architect. I swear this is not a proper blog :)

May 30 / 10:25pm

Google App Engine and Django

There is no doubt that Google App Engine is a marvellous platform. It eliminates the burden of thinking about scalability at an acceptable cost and provides interesting services like authentication using Google accounts. The downside is the coupling with Google's infrastructure, something not really appealing to a certain audience. But even so, it's still a good platform. As you may know Google App Engine can run applications built in Python. The problem is that the API it provides uses Django 0.9.6, not the latest release, and it won't (probably) be updated soon. Due to the limitations on number of files and size using the latest Django in your App box is not a trivial matter. Enter the world of App-engine-patch, a project built to remove the hardships of the task. As you can find in the official documentation of Google App or the Getting Started guide, building a new application with it is quite straightforward. A sample project is provided that can be used as a template for your webapp. Another benefit of this package is Ragendja, a series of snippets that show you how to code certain common tasks. Yes, that easy. You can do the test using the sample project, deploy it and verify everything works. And then add your own code. Enjoy! PS: can't add an example as my Google App Engine has been disabled, no idea why. And as my mobile was already used I can't create a new account. Wonderful :)
Loading mentions Retweet

Comments (0)

Apr 19 / 10:32pm

Python 2.6

No, it's not a mistake, this is a post about Python. Yes, that Python. What does a Java developer learning Python? Well, long story short I wanted to be able to use another language, if possible using another paradigm like functional programming. By use I mean something like "coding from scratch with little Google support"; nothing similar to what I do with XUL or C++ right now. So I checked my options: Ruby, Perl, Python, Scala... and decided on Python. I have to say the main reason for choosing Python over Ruby was Google App Engine, with its support for Django. And there are some ideas in my mind that could use that combo, so why not? Learning is fun! After doing some research I found some links that should be enough to learn Python properly. Honestly, with the language reference you should be able to start coding without even asking Google, so I won't add extra information. Welcome to a new world!
Loading mentions Retweet

Filed under // python

Comments (0)