1 from django
.conf
.urls
import url
12 url(r
'^(?P<username>[\w.+-]+)/update$',
13 views
.update_published_podcasts
,
14 name
='publisher-update'),
16 url(r
'^(?P<username>[\w.+-]+)/update-token',
17 views
.new_update_token
,
18 name
='publisher-new-update-token'),
20 url(r
'^podcast/(?P<slug>[\w-]+)/$',
22 name
='podcast-publisher-detail-slug'),
24 url(r
'^podcast/(?P<slug>[\w-]+)/update$',
25 views
.update_podcast_slug
,
26 name
='podcast-publisher-update-slug'),
28 url(r
'^podcast/(?P<slug>[\w-]+)/save$',
29 views
.save_podcast_slug
,
30 name
='podcast-publisher-save-slug'),
32 url(r
'^podcast/(?P<slug>[\w-]+)/episodes$',
34 name
='podcast-publisher-episodes-slug'),
36 url(r
'^podcast/(?P<p_slug>[\w-]+)/(?P<e_slug>[\w-]+)$',
38 name
='episode-publisher-detail-slug'),
40 url(r
'^podcast/(?P<p_slug>[\w-]+)/(?P<e_slug>[\w-]+)/set-slug$',
41 views
.update_episode_slug_slug
,
42 name
='publisher-set-episode-slug-slug'),
44 url(r
'^podcast/(?P<podcast_id>[0-9a-f]{32})/$',
46 name
='podcast-publisher-detail-id'),
48 url(r
'^podcast/(?P<podcast_id>[0-9a-f]{32})/update$',
49 views
.update_podcast_id
,
50 name
='podcast-publisher-update-id'),
52 url(r
'^podcast/(?P<podcast_id>[0-9a-f]{32})/save$',
53 views
.save_podcast_id
,
54 name
='podcast-publisher-save-id'),
56 url(r
'^podcast/(?P<podcast_id>[0-9a-f]{32})/episodes$',
58 name
='podcast-publisher-episodes-id'),
60 url(r
'^podcast/(?P<podcast_id>[0-9a-f]{32})/(?P<e_id>[0-9a-f]{32})$',
62 name
='episode-publisher-detail-id'),
64 url(r
'^podcast/(?P<podcast_id>[0-9a-f]{32})/(?P<episode_id>[0-9a-f]{32})/'
66 views
.update_episode_slug_id
,
67 name
='publisher-set-episode-slug-id'),
69 url(r
'^group/(?P<pg_slug>[\w-]+)$',
71 name
='group-publisher-slug'),
73 url(r
'^group/(?P<pg_slug>[\w-]+)$',
75 name
='group-publisher-id'),
77 url(r
'^podcast/search$',
79 name
='podcast-publisher-search'),