1 # -*- coding: utf-8 -*-
2 # This file is part of PrawoKultury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.conf.urls import patterns, url, include
6 from django.utils.translation import ugettext_lazy as _
7 from django.views.decorators.csrf import csrf_exempt
8 from getpaid.backends.payu.views import OnlineView
9 from prawokultury.middleware import honeypot_exempt
10 from .views import ThanksView, NoThanksView, OfferDetailView
13 urlpatterns = patterns('',
14 url(r'^kup/(?P<slug>[^/]+)/$', OfferDetailView.as_view(), name='shop_buy'),
15 url(r'^dziekujemy/(?P<pk>\d+)/$', ThanksView.as_view(), name='shop_thanks'),
16 url(r'^niepowodzenie/(?P<pk>\d+)/$', NoThanksView.as_view(), name='shop_nothanks'),
17 url(r'^getpaid/getpaid.backends.payu/online/$',
18 honeypot_exempt(csrf_exempt(OnlineView.as_view())),
19 name='getpaid-payu-online'),
20 url(r'^getpaid/', include('getpaid.urls')),