<reponame>tmwagency/pi-booth
from flask import Flask
from flask.ext.socketio import SocketIO

socketio = SocketIO()


def create_app(debug=False):
	app = Flask(__name__)
	app.debug=debug
	app.config['SECRET_KEY'] = 'secret!'
	
	from .main import main as main_blueprint
	app.register_blueprint(main_blueprint)
	
	socketio.init_app(app)
	return app

from flask import Flask
from flask.ext.socketio import SocketIO

socketio = SocketIO()


def create_app(debug=False):
	app = Flask(__name__)
	app.debug=debug
	app.config['SECRET_KEY'] = 'secret!'
	
	from .main import main as main_blueprint
	app.register_blueprint(main_blueprint)
	
	socketio.init_app(app)
	return app