from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.user, name='adhesion-detail'), url(r'^asso/(?P<pk>[0-9]+)/$', views.corporation, name='corporation-detail'), ]