Example #1
0
def create_app():
    app = Flask("test", template_folder=basedir + "/../app/templates")
    app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'opinionated-test.db')
    app.config['SERVER_NAME'] = 'localhost:5000'
    app.debug = True
    db.app = app
    db.init_app(app)
    return app
Example #2
0
__author__ = 'johannes'

from flask import Flask
from .session_handler import RedisSessionInterface

app = Flask(__name__)

app.session_interface = RedisSessionInterface()
app.secret_key = 'qwedxcyujnfr6yhbnm0sa7rt9;p74ty[989'
app.config['SERVER_NAME'] = "localhost:5000"
app.views = {}

from .data_handling import DataHandler
data_handler = DataHandler()

from .app import *
from .views import *