X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/91117520dbe0336cd5acc91c6d8e23d81141f9df..a20146248fcfa1c17416ccf3c97277f656242158:/shop/urls.py?ds=sidebyside diff --git a/shop/urls.py b/shop/urls.py index ff1c847..debea33 100644 --- a/shop/urls.py +++ b/shop/urls.py @@ -4,13 +4,18 @@ # from django.conf.urls import patterns, url, include from django.utils.translation import ugettext_lazy as _ - +from django.views.decorators.csrf import csrf_exempt +from getpaid.backends.payu.views import OnlineView +from prawokultury.middleware import honeypot_exempt from .views import ThanksView, NoThanksView, OfferDetailView urlpatterns = patterns('', url(r'^kup/(?P[^/]+)/$', OfferDetailView.as_view(), name='shop_buy'), - url(r'^dziekujemy/$', ThanksView.as_view(), name='shop_thanks'), - url(r'^niepowodzenie/$', NoThanksView.as_view(), name='shop_nothanks'), + url(r'^dziekujemy/(?P\d+)/$', ThanksView.as_view(), name='shop_thanks'), + url(r'^niepowodzenie/(?P\d+)/$', NoThanksView.as_view(), name='shop_nothanks'), + url(r'^getpaid/getpaid.backends.payu/online/$', + honeypot_exempt(csrf_exempt(OnlineView.as_view())), + name='getpaid-payu-online'), url(r'^getpaid/', include('getpaid.urls')), )