Skip to content
Permalink
dc82675d87
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (13 sloc) 350 Bytes
from flask import Flask
from app import mqtt, routes
def make_app():
"""
Makes the app object with the configuration from
an environment variable and connects routes and mqtt
to the app
"""
app = Flask(__name__)
app.config.from_envvar('MYAPP_SETTINGS')
mqtt.init_app(app)
routes.init_app(app)
return app