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.
Source:stackexchange.com