06 – Google App Engine for Python – Jinja2 Templates Intro

In this video tutorial I show how to use Jinja2 Templates on Google App Engine for Python. . . . → Read More: 06 – Google App Engine for Python – Jinja2 Templates Intro

05 – Google App Engine for Python – Preserving User Input

Preserving user input, storing them in the session. How to escape values to be inserted in HTML. . . . → Read More: 05 – Google App Engine for Python – Preserving User Input

04 – Google App Engine for Python – Validation & Sessions

A simple validation and how to keep values in the session. . . . → Read More: 04 – Google App Engine for Python – Validation & Sessions

03 – Google App Engine for Python – HTML & Form Parameters

In this video I output HTML as a string and I read form parameters. . . . → Read More: 03 – Google App Engine for Python – HTML & Form Parameters

02 – Google App Engine for Python – Deploying

Second part of the tutorial showing how to deploy your application to Google App Engine.

01 – Google App Engine for Python – Hello World

My first public screencast: a tutorial showing how to create a Hello World application using Google App Engine for Python!

Dumping and Restoring Data with Google App Engine

Google App Engine has a way to dump and restore data, using the bulkloader.py command from Python SDK.

To be able to use it with a Java application, first we’ve to map the RemoteApiServlet in web.xml

<servlet> <servlet-name>RemoteApi</servlet-name> <servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>RemoteApi</servlet-name> <url-pattern>/remote_api</url-pattern> </servlet-mapping>

Here is the command to dump all the instances of . . . → Read More: Dumping and Restoring Data with Google App Engine

Cleaning up unused indexes in Google App Engine

Google App Engine allows 200 datastore indexes, so once in a while is a good idea to clean up unused indexes. This operation is called vacuum-indexes, and is available in the Python and Java SDK.

I’ve done the index cleaning in my Java application using the Python SDK, because historically this operation was possible only . . . → Read More: Cleaning up unused indexes in Google App Engine

Trac woes

After upgrading my Ubuntu Maverick Meerkat to Natty Narwhal, My Trac installation greeted me with “500 Internal Server Error”.

Checking apache error log I saw “ImportError: No module named trac.web.modpython_frontend“.

[Mon May 02 14:02:24 2011] [error] [client 192.168.254.100] mod_python (pid=1991, interpreter=’main_interpreter’, phase=’PythonHandler’, handler=’trac.web.modpython_frontend’): Application error [Mon May 02 14:02:24 2011] [error] [client 192.168.254.100] ServerName: ‘::1′ . . . → Read More: Trac woes