[Solved]-TypeError at / __init__() takes exactly 1 argument (2 given)

33👍

Home is a class-based view. For those, you need to use the as_view method in your URL pattern:

url(r'^$', home.as_view(), name='home'),

See the documentation.

Leave a comment