from pytorrent import create_app, socketio from pytorrent.config import HOST, PORT, DEBUG app = create_app() if __name__ == "__main__": socketio.run(app, host=HOST, port=PORT, debug=DEBUG, allow_unsafe_werkzeug=True)