Error Using django-tables2 - Expected table or queryset, not 'str'

后端 未结 4 1370
感动是毒
感动是毒 2021-02-05 19:13

I am trying to create some tables for my application using django-tables2 and running into some difficulties. I am using Python 2.7, and Django 1.7. I am following the tutorial,

4条回答
  •  离开以前
    2021-02-05 19:39

    According to django-tables2 documentation:
    In tutorial/views.py, the class name is PersonListView here

    I changed the class name from PersonListView to PersonTableView And also made the this change in urls.py.

    My problem was solved by doing this.

    Why was this problem caused? Please anyone let me know.

提交回复
热议问题