def form_valid(self,form): email = form.cleaned_data['email'] pw = form.cleaned_data['password'] i =Integrator('pandora',email, pw) station_id = self.request.get_full_path().split('/')[3] station_pandora_id = Station.objects.get(id=station_id) integrated_songs = i.get_songs(station_pandora_id) return HttpResponseRedirect(self.get_success_url()+station_id)
def form_valid(self,form): email = form.cleaned_data['email'] pw = form.cleaned_data['password'] i =Integrator('pandora',email, pw) songs = i.load_stations() return HttpResponseRedirect(self.get_success_url())