1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, 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
7 from .models import Offer
8 from .views import (WLFundView, OfferDetailView, OfferListView,
9 ThanksView, NoThanksView, CurrentView, DisableNotifications)
12 urlpatterns = patterns('',
14 url(r'^$', CurrentView.as_view(), name='funding_current'),
15 url(r'^teraz/$', CurrentView.as_view()),
16 url(r'^teraz/(?P<slug>[^/]+)/$', CurrentView.as_view(), name='funding_current'),
17 url(r'^lektura/$', OfferListView.as_view(), name='funding'),
18 url(r'^lektura/(?P<slug>[^/]+)/$', OfferDetailView.as_view(), name='funding_offer'),
19 url(r'^pozostale/$', WLFundView.as_view(), name='funding_wlfund'),
21 url(r'^dziekujemy/$', ThanksView.as_view(), name='funding_thanks'),
22 url(r'^niepowodzenie/$', NoThanksView.as_view(), name='funding_nothanks'),
24 url(r'^wylacz_email/$', DisableNotifications.as_view(), name='funding_disable_notifications'),
26 url(r'^getpaid/', include('getpaid.urls')),