Re: passing variable to objects.get

2009-07-23 Thread Shawn Milochik
Do you know for certain that indata contains a value before you try the objects.get()? If you are getting an error like "no value found," it sounds like you might not. If you're getting something like "no such object," then it would be a different problem. Is the field "word" in your

passing variable to objects.get

2009-07-23 Thread BoĊĦtjan Jerko
I have Django 1.0 and in views.py have following definition: def vplayer(request,indata): path_data=szj.objects.get(word=indata).file_path context=RequestContext(request, { "indata":path_data, }) return render_to_response("vplayer.html",context)