Plankton_Detector/PlanktonDetector/DetectionApp/urls.py
2024-01-06 14:14:15 +01:00

15 lines
580 B
Python

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/<int:pk>", views.DetectionDetails.as_view(), name="detection-details"
),
path("export_pred/<int:pk>", views.download_pred_res, name="download_predicitions"),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)