added rugwebsite.gdpr_urls

This commit is contained in:
H.T. Kruitbosch 2018-05-17 11:36:03 +02:00
parent ab56a48dd4
commit 50d5b9a7b9
3 changed files with 20 additions and 3 deletions

View File

@ -1 +1 @@
__version__ = '0.1.35'
__version__ = '0.1.36'

11
rugwebsite/gdpr_urls.py Normal file
View File

@ -0,0 +1,11 @@
from django.conf.urls import url
from rugwebsite.views import gdpr, gdpr_request_delete, gdpr_delete, gdpr_agree, gdpr_create_agree, gdpr_ask_agreement
urlpatterns = [
url(r'/$', gdpr, name='gdpr'),
url(r'request-delete/$', gdpr_request_delete, name='gdpr-request-delete'),
url(r'delete/(?P<email>[^/]+)/(?P<token>[a-zA-Z0-9]{32})/$', gdpr_delete, name='gdpr-delete'),
url(r'agree/(?P<email>[^/]+)/(?P<token>[a-zA-Z0-9]{32})/$', gdpr_agree, name='gdpr-agree'),
url(r'create-agree/$', gdpr_create_agree, name='gdpr-create-agree'),
url(r'ask-for-agreement/$', gdpr_ask_agreement, name='gdpr-ask-for-agreement'),
]

View File

@ -1,10 +1,16 @@
from django.conf.urls import include, url
import django_saml2_pro_auth.urls as saml_urls
from rugwebsite.views import home, gdpr, request_gdpr_delete
from rugwebsite.views import home, gdpr, gdpr_request_delete, gdpr_delete, gdpr_agree, gdpr_create_agree, \
gdpr_ask_agreement
urlpatterns = [
url(r'gdpr/$', gdpr, name='gdpr'),
url(r'gdpr-forget-me/$', request_gdpr_delete, name='gdpr-forget-me'),
url(r'gdpr-request-delete/$', gdpr_request_delete, name='gdpr-request-delete'),
url(r'gdpr-delete/(?P<email>[^/]+)/(?P<token>[a-zA-Z0-9]{32})/$', gdpr_delete, name='gdpr-delete'),
url(r'gdpr-agree/(?P<email>[^/]+)/(?P<token>[a-zA-Z0-9]{32})/$', gdpr_agree, name='gdpr-agree'),
url(r'gdpr-create-agree/$', gdpr_create_agree, name='gdpr-create-agree'),
url(r'gdpr-ask-for-agreement/$', gdpr_ask_agreement, name='gdpr-ask-for-agreement'),
url(r'', include(saml_urls, namespace='saml')),
url(r'$', home),
]