vjdhama
vjdhama

Reputation: 5058

Using Global variables in Google app engine python webapp

Is it right to use global variables in Google app engine?

I used them in one of my app and it turns out they tends to get flushed after small period of time when app is not being used.

If i am right is there a alternative?

Upvotes: 0

Views: 189

Answers (1)

voscausa
voscausa

Reputation: 11706

When you use webapp2 you can use a registry. http://webapp-improved.appspot.com/guide/app.html#registry And there is a request registry: http://webapp-improved.appspot.com/guide/request.html#registry

Upvotes: 2

Related Questions