X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7538e73c6e0b33485bcaa42718232badecdf9e90..4fb23ed3c3396d23a37a718fc857ecc8b36b0c7f:/src/club/urls.py?ds=inline diff --git a/src/club/urls.py b/src/club/urls.py index dcefc222d..026758070 100644 --- a/src/club/urls.py +++ b/src/club/urls.py @@ -1,15 +1,31 @@ -from django.conf.urls import url +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. +# +from django.urls import path +from django.views.generic import RedirectView +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'), - url(r'^dolacz/app/$', views.AppJoinView.as_view(), name='club_join'), + path('', banner_exempt(views.JoinView.as_view()), name='club_join'), + path('dolacz/', RedirectView.as_view( + url='/pomagam/', permanent=False)), + 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'), + 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'), + path('plan//rodzaj/', banner_exempt(views.DonationStep1.as_view()), name='donation_step1'), + path('plan//dane/', banner_exempt(views.DonationStep2.as_view()), name='donation_step2'), - url(r'^testowa-platnosc/(?P[-a-z0-9]+)/$', views.DummyPaymentView.as_view(), name='club_dummy_payment'), + path('przylacz//', views.claim, name='club_claim'), + path('anuluj//', views.cancel, name='club_cancel'), + + 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'), + + path('notify//', views.PayUNotifyView.as_view(), name='club_payu_notify'), + + path('weryfikacja/', views.member_verify, name='club_member_verify'), ]