path('',views.IndexView.as_view()), AttributeError: module 'basic_app.views' has no attribute 'IndexView' code example
Example: AttributeError: module 'django.contrib.auth.views' has no attribute 'login'
from django.contrib.auth import views as auth_views
urlpatterns = [
url( r'^login/$',auth_views.LoginView.as_view(template_name="useraccounts/login.html"), name="login"),
]