error during Logout view development
alexmzirai opened this issue · comments
My main urls.py file looks like this...
urlpatterns = [
url(r'^$', views.home, name='home'), # the route for home
url(r'^signup/$', accounts_views.signup, name='signup'),
url('r^logout/$', auth_views.LogoutView.as_view(), name='logout'), # this is a Django class-based view
url(r'^boards/(?P\d+)/$', views.board_topics, name='board_topics'), # listing topics based on
Board
url(r'^boards/(?P\d+)/new/$', views.new_topic, name='new_topic'),
url(r'^admin/', admin.site.urls),
]
The error i am getting is as follows:
url('r^logout/$', auth_views.LogoutView.as_view(), name='logout'),
AttributeError: module 'django.contrib.auth.views' has no attribute 'LogoutView'
How do i fix this?