# Path: app.py



import os
import sys
from flask import request
from beaker.middleware import SessionMiddleware
from app import app
# -*- coding: utf-8 -*-
"""
    sessions.beaker_session
    ~~~~~~~~~~~~~~~~~~~~~~~

    Using Beaker session with Flask
    http://flask.pocoo.org/snippets/61/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




session_opts = {
    'session.type': 'ext:memcached',
    'session.url': '127.0.0.1:11211',
    'session.data_dir': './cache',
}



# Path: app.py



# Path: sessions/beaker_session.py
import os
import sys
from flask import request
from beaker.middleware import SessionMiddleware
from app import app

# -*- coding: utf-8 -*-
"""
    sessions.beaker_session
    ~~~~~~~~~~~~~~~~~~~~~~~

    Using Beaker session with Flask
    http://flask.pocoo.org/snippets/61/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




session_opts = {
    'session.type': 'ext:memcached',
    'session.url': '127.0.0.1:11211',
    'session.data_dir': './cache',
}



@app.route('/')