summaryrefslogtreecommitdiff
path: root/statistics_app/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'statistics_app/urls.py')
-rw-r--r--statistics_app/urls.py12
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"),
]