Stale css changes.
[prawokultury.git] / shop / urls.py
index ff1c847..debea33 100644 (file)
@@ -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<slug>[^/]+)/$', 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<pk>\d+)/$', ThanksView.as_view(), name='shop_thanks'),
+    url(r'^niepowodzenie/(?P<pk>\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')),
 )