Skip to content

Instantly share code, notes, and snippets.

@dound
Created June 24, 2011 22:41
Show Gist options
  • Save dound/1045832 to your computer and use it in GitHub Desktop.
Save dound/1045832 to your computer and use it in GitHub Desktop.
Using gae-sessions with optional AppStats and without appengine_config.py
# define your own values for app-specific settings like debug, url_mappings, ...
from google.appengine.ext import webapp
from gaesessions import SessionMiddleware
app = webapp.WSGIApplication(url_mappings, debug=debug)
app = SessionMiddleware(app, COOKIE_KEY)
if USE_APP_STATS:
from google.appenginSessionMiddlewareort recording
app = recording.appstats_wsgi_middleware(app)
def main(): run_wsgi_app(app)
if __name__ == '__main__': main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment