use include for this

This commit is contained in:
Thomas Steen Rasmussen 2017-03-08 02:01:38 +01:00
parent bd76e7cc7b
commit e233d15de3

View file

@ -131,29 +131,33 @@ urlpatterns = [
name='schedule_index' name='schedule_index'
), ),
url( url(
r'^speakers/$', r'^speakers/', include([
SpeakerListView.as_view(), url(
name='speaker_index' r'^$',
), SpeakerListView.as_view(),
url( name='speaker_index'
r'^speakers/create/$', ),
SpeakerCreateView.as_view(), url(
name='speaker_create' r'^create/$',
), SpeakerCreateView.as_view(),
url( name='speaker_create'
r'^speakers/(?P<slug>[-_\w+]+)/edit/$', ),
SpeakerEditView.as_view(), url(
name='speaker_edit' r'^(?P<slug>[-_\w+]+)/$',
), SpeakerDetailView.as_view(),
url( name='speaker_detail'
r'^speakers/(?P<slug>[-_\w+]+)/$', ),
SpeakerDetailView.as_view(), url(
name='speaker_detail' r'^(?P<slug>[-_\w+]+)/edit/$',
), SpeakerEditView.as_view(),
url( name='speaker_edit'
r'^speakers/(?P<slug>[-_\w+]+)/pictures/(?P<picture>[-_\w+]+)/$', ),
SpeakerPictureView.as_view(), url(
name='speaker_picture', r'^(?P<slug>[-_\w+]+)/pictures/(?P<picture>[-_\w+]+)/$',
SpeakerPictureView.as_view(),
name='speaker_picture',
),
]),
), ),
url( url(
r'^events/$', r'^events/$',