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
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)
2 matches
Mail list logo