Plankton_Detector/PlanktonDetector/DetectionApp/urls.py

15 lines
579 B
Python
Raw Normal View History

2023-12-06 18:12:31 +01:00
from django.urls import path, include
from . import views
from django.conf.urls.static import static
from django.conf import settings
2023-12-06 18:12:31 +01:00
from django.contrib.auth import urls
2023-12-06 18:12:31 +01:00
urlpatterns = [
path("detect/", views.DetectView.as_view(), name="detect"),
2023-12-13 02:11:29 +01:00
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_predicitons"),
2023-12-06 18:12:31 +01:00
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)