diff options
author | adityacp | 2020-08-13 16:51:11 +0530 |
---|---|---|
committer | adityacp | 2020-08-13 16:51:11 +0530 |
commit | 4fb30bc7dc02a4ca17aec13ca83d2d23fe9ae632 (patch) | |
tree | e66223bcb6e8549f9cb391d143478e48757b58bc /statistics_app/urls.py | |
parent | 8e7c9aeadcae850155e17a0323b1079e0e642010 (diff) | |
download | workshop_booking-4fb30bc7dc02a4ca17aec13ca83d2d23fe9ae632.tar.gz workshop_booking-4fb30bc7dc02a4ca17aec13ca83d2d23fe9ae632.tar.bz2 workshop_booking-4fb30bc7dc02a4ca17aec13ca83d2d23fe9ae632.zip |
Fix and refactor statistics app
Diffstat (limited to 'statistics_app/urls.py')
-rw-r--r-- | statistics_app/urls.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/statistics_app/urls.py b/statistics_app/urls.py index 8950e37..05d7ac9 100644 --- a/statistics_app/urls.py +++ b/statistics_app/urls.py @@ -1,12 +1,10 @@ - -from django.conf.urls import url -from django.contrib import admin +from django.urls import path from statistics_app import views +app_name = "statistics_app" urlpatterns = [ - url(r'^statistics/$', views.workshop_stats), - url(r'^statistics/public_stats/$', views.workshop_public_stats), - url(r'^statistics/profile_stats/$', views.profile_stats), - url(r'^statistics/v1/team_stats/$', views.team_stats), + path('public', views.workshop_public_stats, name="public"), + path('team', views.team_stats, name="team"), + path('team/<int:team_id>', views.team_stats, name="team"), ] |