Plankton_Detector/PlanktonDetector/DetectionApp/urls.py

13 lines
500 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"),
path("login/", views.LoginView.as_view(), name="login"),
path("logout/", views.logout_view, name="logout"),
path("register/", views.SignupView.as_view(), name="signup"),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)