from django.urls import path
from django.conf.urls.static import static
from django.conf import settings

from playlist_manager import views
from playlist_manager import attraction_management_views


urlpatterns = [
    path("", views.HomePageView.as_view(), name="home"),
    path("attractions/", views.AttractionListView.as_view(), name="attraction-list"),
    path("tracks/", views.TrackListView.as_view(), name="track-list"),
    path('results/', views.result_view, name='results'),
    
    path('attractions/select/<str:pk>/', attraction_management_views.select_attraction, name='select_attraction'),
    path('attractions/remove/<str:pk>/', attraction_management_views.remove_attraction, name='remove_attraction'),
    
    path('attractions/select-origin/<str:pk>/', attraction_management_views.select_attraction_origin, name='select_attraction_origin'),
    path('attractions/remove-origin/<str:pk>/', attraction_management_views.remove_attraction_origin, name='remove_attraction_origin'),
    
    path('attractions/select-destination/<str:pk>/', attraction_management_views.select_attraction_destination, name='select_attraction_destination'),
    path('attractions/remove-destination/<str:pk>/', attraction_management_views.remove_attraction_destination, name='remove_attraction_destination'),

] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

38a48f5ac047f02d24813a0f0630c5df02206c49
<mask token>

<mask token>
urlpatterns = [path('', views.HomePageView.as_view(), name='home'), path(
    'attractions/', views.AttractionListView.as_view(), name=
    'attraction-list'), path('tracks/', views.TrackListView.as_view(), name
    ='track-list'), path('results/', views.result_view, name='results'),
    path('attractions/select/<str:pk>/', attraction_management_views.
    select_attraction, name='select_attraction'), path(
    'attractions/remove/<str:pk>/', attraction_management_views.
    remove_attraction, name='remove_attraction'), path(
    'attractions/select-origin/<str:pk>/', attraction_management_views.
    select_attraction_origin, name='select_attraction_origin'), path(
    'attractions/remove-origin/<str:pk>/', attraction_management_views.
    remove_attraction_origin, name='remove_attraction_origin'), path(
    'attractions/select-destination/<str:pk>/', attraction_management_views
    .select_attraction_destination, name='select_attraction_destination'),
    path('attractions/remove-destination/<str:pk>/',
    attraction_management_views.remove_attraction_destination, name=
    'remove_attraction_destination')] + static(settings.MEDIA_URL,
    document_root=settings.MEDIA_ROOT)

from django.urls import path
from django.conf.urls.static import static
from django.conf import settings
from playlist_manager import views
from playlist_manager import attraction_management_views
urlpatterns = [path('', views.HomePageView.as_view(), name='home'), path(
    'attractions/', views.AttractionListView.as_view(), name=
    'attraction-list'), path('tracks/', views.TrackListView.as_view(), name
    ='track-list'), path('results/', views.result_view, name='results'),
    path('attractions/select/<str:pk>/', attraction_management_views.
    select_attraction, name='select_attraction'), path(
    'attractions/remove/<str:pk>/', attraction_management_views.
    remove_attraction, name='remove_attraction'), path(
    'attractions/select-origin/<str:pk>/', attraction_management_views.
    select_attraction_origin, name='select_attraction_origin'), path(
    'attractions/remove-origin/<str:pk>/', attraction_management_views.
    remove_attraction_origin, name='remove_attraction_origin'), path(
    'attractions/select-destination/<str:pk>/', attraction_management_views
    .select_attraction_destination, name='select_attraction_destination'),
    path('attractions/remove-destination/<str:pk>/',
    attraction_management_views.remove_attraction_destination, name=
    'remove_attraction_destination')] + static(settings.MEDIA_URL,
    document_root=settings.MEDIA_ROOT)

from django.urls import path
from django.conf.urls.static import static
from django.conf import settings

from playlist_manager import views
from playlist_manager import attraction_management_views


urlpatterns = [
    path("", views.HomePageView.as_view(), name="home"),
    path("attractions/", views.AttractionListView.as_view(), name="attraction-list"),
    path("tracks/", views.TrackListView.as_view(), name="track-list"),
    path('results/', views.result_view, name='results'),
    
    path('attractions/select/<str:pk>/', attraction_management_views.select_attraction, name='select_attraction'),
    path('attractions/remove/<str:pk>/', attraction_management_views.remove_attraction, name='remove_attraction'),
    
    path('attractions/select-origin/<str:pk>/', attraction_management_views.select_attraction_origin, name='select_attraction_origin'),
    path('attractions/remove-origin/<str:pk>/', attraction_management_views.remove_attraction_origin, name='remove_attraction_origin'),
    
    path('attractions/select-destination/<str:pk>/', attraction_management_views.select_attraction_destination, name='select_attraction_destination'),
    path('attractions/remove-destination/<str:pk>/', attraction_management_views.remove_attraction_destination, name='remove_attraction_destination'),

] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
