diff --git a/suitablephones/urls.py b/suitablephones/urls.py index 50b7845..bc8668f 100644 --- a/suitablephones/urls.py +++ b/suitablephones/urls.py @@ -1,7 +1,7 @@ from django.urls import path -from . import views +from suitablephones.views import SuitablePhones urlpatterns = [ - path('suitablephones/', views.suitablephones, name='suitablephones'), + path('suitablephones/', SuitablePhones.as_view(), name='suitablephones'), ]