Re: django views error

2015-01-28 Thread Sergiy Khohlov
Second function has ident mistakes .2last lines have additional space. 27 січ. 2015 09:31, користувач "Stephen J. Butler" написав: > Not all your lines have the same indent level in your profile method. Line > 52. > > On Tue, Jan 27, 2015 at 1:03 AM, Mosharof sabu > wrote: > > my view > > > > >

Re: django views error

2015-01-26 Thread Stephen J. Butler
Not all your lines have the same indent level in your profile method. Line 52. On Tue, Jan 27, 2015 at 1:03 AM, Mosharof sabu wrote: > my view > > > def index(request): > category_list = Status.objects.filter(comment__startswith="d") > context_dict = {'categories': category_list} > re

django views error

2015-01-26 Thread Mosharof sabu
my view def index(request): category_list = Status.objects.filter(comment__startswith="d") context_dict = {'categories': category_list} return render(request, 'idesk/index.html', context_dict) it shows result in index.html page but when i try to show query in profile.html page like