1 from django
.conf
.urls
import *
3 from mygpo
.directory
.views
import Directory
, Carousel
, MissingPodcast
, \
4 AddPodcast
, AddPodcastStatus
, FlattrPodcastList
, LicensePodcastList
, \
5 LicenseList
, PodcastToplistView
, EpisodeToplistView
7 urlpatterns
= patterns('mygpo.directory.views',
9 PodcastToplistView
.as_view(),
12 url(r
'^toplist/episodes$',
13 EpisodeToplistView
.as_view(),
14 name
='episode-toplist'),
18 name
='directory-home'),
22 name
='carousel-demo'),
25 MissingPodcast
.as_view(),
26 name
='missing-podcast'),
28 url(r
'^add-podcast/$',
32 url(r
'^add-podcast/(?P<task_id>[^/]+)$',
33 AddPodcastStatus
.as_view(),
34 name
='add-podcast-status'),
36 url(r
'^directory/\+flattr$',
37 FlattrPodcastList
.as_view(),
38 name
='flattr-podcasts'),
40 url(r
'^directory/\+license$',
41 LicenseList
.as_view(),
42 name
='license-podcasts'),
44 url(r
'^directory/\+license/\+url/(?P<license_url>.+)$',
45 LicensePodcastList
.as_view(),
46 name
='license-podcasts-url'),
48 url(r
'^directory/(?P<category>.+)$', 'category', name
='directory'),
49 url(r
'^search/$', 'search', name
='search'),
50 url(r
'^lists/$', 'podcast_lists', name
='podcast-lists'),