1 | from django.urls import path
|
---|
2 | from django.views.generic import RedirectView
|
---|
3 |
|
---|
4 | from . import views
|
---|
5 |
|
---|
6 | urlpatterns = [
|
---|
7 | path('', views.home_page, name='homepage'),
|
---|
8 | path('album/', views.album_list, name='album_list'),
|
---|
9 | path('artist/', views.artist_list, name='artist_list'),
|
---|
10 | path('artist/avg-track-duration', views.avg_track_duration, name='avg_track_duration'),
|
---|
11 | path('artist/avg-track-price', views.avg_price_per_artist, name='avg_track_price'),
|
---|
12 | path('artist/most-popular', views.rank_list_artists, name='rank_list_artists'),
|
---|
13 | path('track/', views.track_list, name='track_list'),
|
---|
14 | path('customer/genres-per-customer', views.genres_per_customer, name='genres_per_customer'),
|
---|
15 | path('customer/invoices-per-customer', views.invoice_per_customer_after_date,
|
---|
16 | name='invoice_per_customer_after_date'),
|
---|
17 | path('customer/artist-per-genre', views.most_popular_artist_per_customer_per_genre,
|
---|
18 | name='most_popular_artist_per_customer_per_genre'),
|
---|
19 | path('customer/most-popular-genre-per-customer', views.most_listened_genre_per_customer,
|
---|
20 | name='most_listened_genre_per_customer'),
|
---|
21 | path('media-type/percentage', views.media_type_percentage, name='media_type_percentage'),
|
---|
22 | path('track/per-genre', views.tracks_count_per_genre, name='track_count_per_genre'),
|
---|
23 | path('customer/rank-list', views.rank_list_most_active_customers, name='rank_list_most_active_customers'),
|
---|
24 | ]
|
---|