from flask import Flask import json from .threads import threads from .cache import cache app = Flask(__name__) cache.init_app(app, config={'CACHE_TYPE': 'SimpleCache'}) app.register_blueprint(threads, url_prefix='/', static_folder='static', static_url_path='/threads/static') app.config.from_file("config.json", load=json.load) if __name__ == '__main__': app.run(host='0.0.0.0')