django.urls.exceptions.NoReverseMatch: Reverse for ‘logout’ not found. ‘logout’ is not a valid view function or pattern name.
You have a comma in the regex that shouldn’t be there. Replace
url(r'^logout/$,', views.logoutView, name='logout'),
url(r'^logout/$', views.logout, name='logout'),
Enter the destination URL
Or link to existing content