Request Method:GET
Request URL:http://localhost:9744/employee/1/
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....

-- 
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/-/PJcdrn57HooJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to