path('<int:key>/',views.polls_details,name="polls_details") TypeError: list indices must be integers or slices, not tuple

11 views
Skip to first unread message

tribhuvan kishor

unread,
Oct 11, 2018, 5:42:20 AM10/11/18
to django...@googlegroups.com
please help me I am searching about this error throw out  DAY .

--
regards 
Tribhuvan Kishor Bhaskar
Screenshot from 2018-10-11 14-36-43.png

Daniel Hepper

unread,
Oct 11, 2018, 5:51:00 AM10/11/18
to django...@googlegroups.com
You are missing a =. It should be:

urlpatterns = [
...
]

instead of:

urlpatterns[
...
]

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSUFoTdUn923%2ByVse5GFt0yrrXJ%3Dim_S1FxNPEi9ksu4EQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

tribhuvan kishor

unread,
Oct 11, 2018, 5:54:50 AM10/11/18
to django...@googlegroups.com
thanks man ... i was doing school boy error . thanks for shaving my day :)


For more options, visit https://groups.google.com/d/optout.

Daniel Hepper

unread,
Oct 11, 2018, 7:17:19 AM10/11/18
to django...@googlegroups.com
Happens to the best of us :) 

Glad I could help!

- Daniel

Reply all
Reply to author
Forward
0 new messages