X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/355e42e2b2244470ac6a5b9ad056e4a3f38f838c..788c99a388fd34de4c159d6a3cefed84291b95f5:/src/club/urls.py diff --git a/src/club/urls.py b/src/club/urls.py index 506f42b62..8bbb849b2 100644 --- a/src/club/urls.py +++ b/src/club/urls.py @@ -1,20 +1,27 @@ -from django.conf.urls import url +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from django.urls import path +from annoy.utils import banner_exempt from . import views urlpatterns = [ - url(r'^$', views.ClubView.as_view()), - url(r'^dolacz/$', views.JoinView.as_view(), name='club_join'), + path('', banner_exempt(views.JoinView.as_view()), name='club_join'), + path('info/', banner_exempt(views.ClubView.as_view()), name='club'), - url(r'^plan/(?P[-a-z0-9]+)/$', views.ScheduleView.as_view(), name='club_schedule'), - url(r'^przylacz/(?P[-a-z0-9]+)/$', views.claim, name='club_claim'), - url(r'^anuluj/(?P[-a-z0-9]+)/$', views.cancel, name='club_cancel'), - url(r'^testowa-platnosc/(?P[-a-z0-9]+)/$', views.DummyPaymentView.as_view(), name='club_dummy_payment'), + path('plan//', banner_exempt(views.ScheduleView.as_view()), name='club_schedule'), + path('plan//dziekujemy/', banner_exempt(views.ScheduleThanksView.as_view()), name='club_thanks'), + path('plan//zestawienie//', banner_exempt(views.YearSummaryView.as_view()), name='club_year_summary'), - url(r'platnosc/payu/cykl/(?P.+)/', views.PayURecPayment.as_view(), name='club_payu_rec_payment'), - url(r'platnosc/payu/(?P.+)/', views.PayUPayment.as_view(), name='club_payu_payment'), + path('przylacz//', views.claim, name='club_claim'), + path('anuluj//', views.cancel, name='club_cancel'), + path('testowa-platnosc//', views.DummyPaymentView.as_view(), name='club_dummy_payment'), - url(r'notify/(?P\d+)/', views.PayUNotifyView.as_view(), name='club_payu_notify'), + path('platnosc/payu/cykl//', banner_exempt(views.PayURecPayment.as_view()), name='club_payu_rec_payment'), + path('platnosc/payu//', banner_exempt(views.PayUPayment.as_view()), name='club_payu_payment'), - url(r'czlonek/', views.MembershipView.as_view(), name='club_membership'), + path('notify//', views.PayUNotifyView.as_view(), name='club_payu_notify'), + + path('czlonek/', views.MembershipView.as_view(), name='club_membership'), ]