-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
The most basic functionality seems to cease working. This snippet shows counter: 1 no matter how many times I refresh.
import webapp2
import sys
sys.path.insert(0, 'libs')
from libs.gaesessions import get_current_session
class TestGaeHandler(webapp2.RequestHandler):
def get(self):
self.post()
def post(self):
session = get_current_session()
c = session.get('counter', 0)
session['counter'] = c+1
counter = session['counter']
self.response.headers['Content-Type'] = 'text/html; charset=UTF-8'
self.response.write('counter: '+str(counter))
app = webapp2.WSGIApplication([
('/api/service/test_gae', TestGaeHandler)
], debug=True)Please advise. Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels