def home(request): return render_to_response('sonoro.html', { 'changed' : False, 'current_volume': changevolume.get_volume(), } )
def set_volume(request, volume): changevolume.set_volume(int(volume)) return HttpResponse(changevolume.get_volume())