from django.conf.urls import url from access import new_view as views urlpatterns = [ url(r'teachers/$', views.TeacherListView.as_view()), ]