def render_graph(): url = request.args.get('url') if not url: return 'Specify a graph URL in the request', 400 return render_template('graph.html', url=request.host_url[:-1] + url)