Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import datetime
  2. from gaesessions import SessionMiddleware
  3. import jinja2
  4. # Add session middleware
  5. def webapp_add_wsgi_middleware(app):
  6. app = SessionMiddleware(app, cookie_key="Yqjo13h69uPX$8o&eagD)bVxabsE(d$Hkm?}qQ7zudzTJM40CPlv$o9)agH6?9r0UlBa#d7U)(NI$cT4", lifetime=datetime.timedelta(minutes=30), no_datastore=True, cookie_only_threshold=0)
  7. return app
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement