from django.urls import path, include from . import views from django.conf.urls.static import static from django.conf import settings from django.contrib.auth import urls urlpatterns = [ path("detect/", views.DetectView.as_view(), name="detect"), path("history/", views.ListHistory.as_view(), name="history"), path( "detection/", views.DetectionDetails.as_view(), name="detection-details" ), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)