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?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/03c70c0f-8293-4388-87cd-53ce3d5f801f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.