On Mon, Nov 19, 2012 at 1:46 PM, muhammed riyas <muhammedriyas.2...@gmail.com> wrote: > <!DOCTYPE html> > <html> > <body> > <h1>Employee List</h1> > {% if employees %} > {% for employee in employees %} > <li><a href="/employee/user/{{ employee.key}}" >{{ > employee.employee_name }}</a></li> > {% endfor %} > <br><br><br><li>Click <a href="/employee/removeall" >here</a> to remove > all employees....</li> > {% else %} > Sorry there is no employees yet :( > {% endif %} > </body> > </html> > I don't find any errors here. I think you are always getting employees, that's why only if part works and else part doesn't work. :p
-- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. 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.