def index(): hashcolor = string_to_color(request.remote_addr) return render_template('index.html', hash_color=hashcolor)
def hashit(name): hashcolor = string_to_color(name) return jsonify(hashcolor=hashcolor)