def index(): wards = get_ward_data() for ward in wards: print ward return render_template("index.html")
def ward_data(): data = get_ward_data() return jsonify([ward.serialize() for ward in data])