[Django]-Simple guestbook django: __init__() takes 1 positional argument but 2 were given

251👍

In your urls.py:

You are missing .as_view()

change it to:

(r"^(\d+)/$", Gastenboek.views.BerichtListView.as_view()),
(r"", Gastenboek.views.BerichtListView.as_view()),
👤Alvaro

Leave a comment