Second function has ident mistakes .2last lines have additional space.
27 січ. 2015 09:31, користувач "Stephen J. Butler" <stephen.butler@gmail.com> написав:
-- 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 <sabu.prco@gmail.com> wrote:
> 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+unsubscribe@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.
--
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+unsubscribe@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/CAD4ANxUjC6CPvMJXkd-qSgR3WjUut4ikj%3DMrLZMHSZ3F5ALhYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@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/CADTRxJOV%2BHaJCpihgvu0O%3DeNHEyESLYQfkdbhAzza9ehzkR9Fg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment