@WEB_SERVER.route('/forecast/<int:post_id>') def show_forecast(post_id): """ Weather forecast json output :return: string """ return Weather.get_forecast_weather(post_id) @WEB_SERVER.route('/news/') def show_news(): """ News :return: string """ news = News(10) return news.get_latest_news() if __name__ == '__main__': if not Config.has_config(): print "Unable to find config.ini file" else: WEB_SERVER.run( debug=True, host='0.0.0.0', threaded=True )