Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_connect(flaskapp):
- namespace = flaskapp.namespace
- _session_store = flaskapp.session_store
- _config = flaskapp.config
- _client = Client(_config)
- _app = flaskapp.app
- @_app.route('/' + namespace + '/test')
- def home():
- user = None
- if 'session_id' in session:
- user = _session_store.get(session['session_id'])
- return render_template('index.html')
Advertisement
Add Comment
Please, Sign In to add comment