this is my views.py.
def studentid(request):
if request.method == 'POST':
form = Student_loginForm(request.POST)
if form.is_valid():
cd = form.cleaned_data
rollno = cd['rollno']
p = form.save()
rollno = request.POST.get('rollno')
rollno=int(rollno)
results = Add_record.objects.filter(Student_ID=rollno)
return HttpResponseRedirect(reverse('record_system.views.search', args=(results)))
def search(request,Student_ID ):
p = get_object_or_404(Add_record, pk=Student_ID)
p.save()
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 'record_system.views.search' 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 https://groups.google.com/d/msg/django-users/-/UwDmhLfnsyUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment