Created
June 24, 2011 22:41
-
-
Save dound/1045832 to your computer and use it in GitHub Desktop.
Using gae-sessions with optional AppStats and without appengine_config.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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