def index(location_id): # return "<h1><b>That's all for tonight folks</b></h1>Thanks for playing!<p><a href='mailto:[email protected]'>Contact the team</a> behind milkshake.fm</p>" l = Location.from_id(location_id) if not l: l = Location(name="whatever") l.save() return render_template('client.html')