Request Method:GET
Exception Type:TypeError
Exception Value:individual() takes exactly 2 arguments (1 given)
Exception Location:/home/user/google_appengine/lib/django_0_96/django/core/handlers/base.py in get_response, line 77
url is (r'^employee/[0-9]+/$','qburstemployeeapp.main.views.individual'),
in this the [0-9]+ denotes id number for the user ...
in my view...
def individual(request,id):
employees = Employeeprofile.all()
for employee in employees:
if(employee.key().id() == id):
return render_to_response('main/individual1.html', { 'employee' : employee })
What is the mistake?...
Thanks in advance....