15 lines
498 B
Python
15 lines
498 B
Python
from django.conf.urls import url
|
|
from django.views.decorators.csrf import csrf_exempt
|
|
|
|
from .views import BdpDetailView, PostAdherentView, ResourcesView
|
|
|
|
urlpatterns = [
|
|
url(r'^(?P<slug>[\w,-]+)/$', BdpDetailView.as_view(), name='bdp-view'),
|
|
url(r'^(?P<slug>[\w,-]+)/(?P<resources>[\w,-]+)/$', ResourcesView.as_view(), name='bdp-resources'),
|
|
url(
|
|
r'^(?P<slug>[\w,-]+)/post/adherent/$',
|
|
csrf_exempt(PostAdherentView.as_view()),
|
|
name='bdp-post-adherent',
|
|
),
|
|
]
|