__init__.py 304 Bytes
Newer Older
Carlos Azuaje's avatar
python3    
Carlos Azuaje committed
1
2
3
from .events import socketio
from .config import DevelopmentConfig
from .views import app as application
charlyjazz's avatar
charlyjazz committed
4
5
6
7
8
9
10
11
12
from flask import Flask


def create_app():
    app = Flask(__name__)
    app.config.from_object(DevelopmentConfig)
    socketio.init_app(app)
    app.register_blueprint(application)

Carlos Azuaje's avatar
python3    
Carlos Azuaje committed
13
    return app