2023-12-06 18:12:31 +01:00
|
|
|
from django.urls import path, include
|
2023-11-20 15:53:42 +01:00
|
|
|
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-11-20 15:53:42 +01:00
|
|
|
|
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"
|
|
|
|
),
|
2024-01-06 14:14:15 +01:00
|
|
|
path("export_pred/<int:pk>", views.download_pred_res, name="download_predicitions"),
|
2023-12-06 18:12:31 +01:00
|
|
|
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|