Monday, December 7, 2009

appengine-storages has now a datastore backend

I just push a datastore based backend.

The code still needs more work and testing, so please not use it on any production site.

But if you are brave enough (or stupid) to do it, send me an email with your experience.

Cheers, Sebastián

Friday, November 27, 2009

django-flash works on app engine

The django-flash application, that provides a Rails-like flash messages support for Django. Works out of the box, if you have session support at the Google App Engine.

http://djangoflash.destaquenet.com/

Thursday, November 12, 2009

local_settings at google app engine

A common trick done in django is have a separated file for local development settings, like:

#settings.py

try:
from localsettings import *
except ImportError:
print 'localsetting could not be imported'
pass #Or raise

An easy way to achieve this with the app egine dev_appserver is check the SERVER_SOFTWARE enviroment value, so even if the dev_settings are uploaded to the live version it doesn’t load the dev settings.
Code speaks louder than words:

#settings.py

import os
SERVER_SOFTWARE = os.getenv('SERVER_SOFTWARE', None)

if SERVER_SOFTWARE:
DEV_SERVER = SERVER_SOFTWARE.split('/')[0] == "Development"
else:
DEV_SERVER = False

if DEV_SERVER:
try:
from dev_settings import *
except ImportError:
pass
Monday, August 17, 2009 Saturday, December 13, 2008
me

me