X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9e05900b7692f2d2a484edb33df69e8519e52131..b2f4ade206d7b14e14cd902eddd990e84eb6552f:/src/newsletter/urls.py?ds=sidebyside diff --git a/src/newsletter/urls.py b/src/newsletter/urls.py index 566f777f4..290bb87a5 100644 --- a/src/newsletter/urls.py +++ b/src/newsletter/urls.py @@ -1,7 +1,15 @@ -# -*- coding: utf-8 -*- -from django.conf.urls import url +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from django.urls import path from . import views urlpatterns = [ - url(r'^wypisz-sie/$', views.unsubscribe, name='unsubscribe'), + path('zapisz-sie/', views.subscribe_form, name='subscribe'), + path('zapisz-sie/konkurs/', views.subscribe_form, {"title": "Zapisz się na newsletter Konkursu", "mailing_list": "contest"}, name='subscribe-contest'), + path('zapis/', views.subscribed, name='subscribed'), + path('potwierdzenie///', + views.confirm_subscription, name='confirm_subscription'), + path('wypisz-sie/', views.unsubscribe_form, name='unsubscribe'), + path('wypisano/', views.unsubscribed, name='unsubscribed'), ]