Django 1.7 issue

42 views
Skip to first unread message

Piyush Sharma

unread,
Mar 16, 2015, 4:21:48 AM3/16/15
to django...@googlegroups.com
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:GET
Request URL:http://127.0.0.1:8000/polls/34/results/
Django Version:1.9
Exception Type:TypeError
Exception Value:
'function' object has no attribute '__getitem__'
Exception Location:C:\Python27\Scripts\news\news\urls.py in <module>, line 8
Python Executable:C:\Python27\python.exe
Python Version:2.7.9

James Schneider

unread,
Mar 16, 2015, 4:26:44 AM3/16/15
to django...@googlegroups.com

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

-James

--
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...@googlegroups.com.
To post to this group, send email to django...@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.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages