import logging

from flask import (
	Flask,
	render_template,
	abort
)

from glanerbeard.server import Server

app = Flask(__name__)
app.config.from_pyfile('../settings.py')

servers = Server.createFromConfig(app.config['SERVERS'], app.config['API_KEYS'])

@app.route('/')
def index():
	shows = [server.getShows() for server in servers]
	return str(shows)


if __name__ == '__main__':
	app.debug = True
	app.run()

import logging

from flask import (
	Flask,
	render_template,
	abort
)

from glanerbeard.server import Server

app = Flask(__name__)
app.config.from_object('glanerbeard.default_settings')
app.config.from_envvar('GLANERBEARD_SETTINGS')


servers = Server.createFromConfig(app.config['SERVERS'], app.config['API_KEYS'])

@app.route('/')
def index():
	shows = [server.getShows() for server in servers]
	return str(shows)


if __name__ == '__main__':
	app.debug = True
	app.run()

Use the new settings loading method.
Use the new settings loading method.
