[Django]-Django get() takes exactly 2 arguments (3 given)

4👍

Try this urlconf

from books.views import AuthorDetailView

urlpatterns = patterns('',
    #...
    (r'^authors/(?P<pk>\d+)/$', AuthorDetailView.as_view()),
)

and navigate to:

http://localhost:8000/author/1/
👤dting

0👍

I did the below change, and it worked.

Upgrade the debug toolbar to 1.5 or downgrade sqlparse to 0.1.x.

Source : https://github.com/jazzband/django-debug-toolbar/issues/862 (Big thanks to the user aaugustin from github)

Leave a comment