google app engine persistent globals

Posted by Joey on Stack Overflow See other posts from Stack Overflow or by Joey
Published on 2010-04-16T01:21:34Z Indexed on 2010/04/16 1:23 UTC
Read the original article Hit count: 355

Hi, I'm looking for a way to keep the equivalent of persistent global variables in app engine (python). What I'm doing is creating a global kind that I initialize once (i.e. when I reset all my database objects when I'm testing). I have things in there like global counters, or the next id to assign certain kinds I create.

Is this a decent way to do this sort of thing or is there generally another approach that is used?

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about python