Saturday, June 30, 2012

i want to display a student profile from the database and am unable to do that.plz help

this is my

def studentid(request):
    if request.method == 'POST':
        form = Student_loginForm(request.POST)
        if form.is_valid():
            cd = form.cleaned_data
            rollno = cd['rollno']
            p =
        rollno = request.POST.get('rollno')
        results = Add_record.objects.filter(Student_ID=rollno)
        return HttpResponseRedirect(reverse('', args=(results)))

def search(request,Student_ID ):
    p = get_object_or_404(Add_record, pk=Student_ID)
    return render_to_response('add_record/search.html', locals(), context_instance=RequestContext(request))

and am getting error on browser that

NoReverseMatch at /record_system/studentid/

Reverse for '' with arguments '(<Add_record: Add_record object>,)' and keyword arguments '{}' not found.

thanks in advance..

You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment