Re: Django developer server auto quit when iterate QuerySet in template

2019-09-24 Thread Deep Sukhwani
Possible to push the whole code to a Github repo so someone could check out and try locally - Couldn't really figure out anything that might be going wrong by looking at this much mode? Also, just out of curiosity, why are you using *Department.objects.filter()* instead of

Django developer server auto quit when iterate QuerySet in template

2019-09-24 Thread Huy Bùi
Hello, Everytime i try to access a url, the Django developer server auto quit without any log about what happens. After debugging a little bit, i find out if i remove this block of code in the template file, i can access the web page normally: {% for d in departments %} {{ d.name