use include for this
This commit is contained in:
parent
bd76e7cc7b
commit
e233d15de3
|
@ -131,30 +131,34 @@ urlpatterns = [
|
||||||
name='schedule_index'
|
name='schedule_index'
|
||||||
),
|
),
|
||||||
url(
|
url(
|
||||||
r'^speakers/$',
|
r'^speakers/', include([
|
||||||
|
url(
|
||||||
|
r'^$',
|
||||||
SpeakerListView.as_view(),
|
SpeakerListView.as_view(),
|
||||||
name='speaker_index'
|
name='speaker_index'
|
||||||
),
|
),
|
||||||
url(
|
url(
|
||||||
r'^speakers/create/$',
|
r'^create/$',
|
||||||
SpeakerCreateView.as_view(),
|
SpeakerCreateView.as_view(),
|
||||||
name='speaker_create'
|
name='speaker_create'
|
||||||
),
|
),
|
||||||
url(
|
url(
|
||||||
r'^speakers/(?P<slug>[-_\w+]+)/edit/$',
|
r'^(?P<slug>[-_\w+]+)/$',
|
||||||
SpeakerEditView.as_view(),
|
|
||||||
name='speaker_edit'
|
|
||||||
),
|
|
||||||
url(
|
|
||||||
r'^speakers/(?P<slug>[-_\w+]+)/$',
|
|
||||||
SpeakerDetailView.as_view(),
|
SpeakerDetailView.as_view(),
|
||||||
name='speaker_detail'
|
name='speaker_detail'
|
||||||
),
|
),
|
||||||
url(
|
url(
|
||||||
r'^speakers/(?P<slug>[-_\w+]+)/pictures/(?P<picture>[-_\w+]+)/$',
|
r'^(?P<slug>[-_\w+]+)/edit/$',
|
||||||
|
SpeakerEditView.as_view(),
|
||||||
|
name='speaker_edit'
|
||||||
|
),
|
||||||
|
url(
|
||||||
|
r'^(?P<slug>[-_\w+]+)/pictures/(?P<picture>[-_\w+]+)/$',
|
||||||
SpeakerPictureView.as_view(),
|
SpeakerPictureView.as_view(),
|
||||||
name='speaker_picture',
|
name='speaker_picture',
|
||||||
),
|
),
|
||||||
|
]),
|
||||||
|
),
|
||||||
url(
|
url(
|
||||||
r'^events/$',
|
r'^events/$',
|
||||||
EventListView.as_view(),
|
EventListView.as_view(),
|
||||||
|
|
Loading…
Reference in a new issue