Plankton_Detector/PlanktonDetector/DetectionApp/urls.py
2023-12-13 02:11:29 +01:00

14 lines
491 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"
),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)