Can you please paste in a copy of your urls.py file that is referenced in
the error?

-James
On Mar 16, 2015 1:21 AM, "Piyush Sharma" <piyush.sharma.1...@gmail.com>
wrote:

> i was following the django 1.7 documentation and having issue in creating
> an app part 3
> please help
>
> TypeError at /polls/34/results/
>
> 'function' object has no attribute '__getitem__'
>
> Request Method:GETRequest URL:http://127.0.0.1:8000/polls/34/results/Django
> Version:1.9Exception Type:TypeErrorException Value:
>
> 'function' object has no attribute '__getitem__'
>
> Exception Location:C:\Python27\Scripts\news\news\urls.py in <module>,
> line 8Python Executable:C:\Python27\python.exePython Version:2.7.9
>
> --
> 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/342e437d-0eb4-41c3-baec-7e1d2787d887%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/342e437d-0eb4-41c3-baec-7e1d2787d887%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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+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/CA%2Be%2BciWH%3DgDfZ4EEFhjF5U0BfzBHyAthGWy3pm9CrEMSCkeqwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to