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 bellow,
def profile(request):
category_list = Status.objects.filter(comment__startswith="d")
context_dict = {'categories': category_list}***
return render(request, 'idesk/profile.html', context_dict)
it shows
IndentationError at /idesk/
unexpected indent (views.py, line 52)
Request Method: POST
Request URL:
http://127.0.0.1:8000/idesk/Django Version: 1.7.1
Exception Type: IndentationError
Exception Value:
unexpected indent (views.py, line 52)
anyone can please help me?