from django.urls import path from django.views.generic import TemplateView from . import views urlpatterns = [ path('', TemplateView.as_view(template_name='magazine/index.html')), path('classify', views.classify, name='classify'), path('shortestPath', views.shortestPath, name='shortestPath'), ]