[Users] fix username pattern and validation
[mygpo.git] / mygpo / podcastlists / urls.py
blob9a3ab1aa3910ab3d28c5de6a96e33e4427aa90e4
1 from django.conf.urls import url
3 from . import views
5 urlpatterns = [
6 url(r'^share/lists/$',
7 views.lists_own,
8 name='lists-overview'),
10 url(r'^share/lists/create$',
11 views.create_list,
12 name='list-create'),
14 url(r'^user/(?P<username>[\w.+-]+)/lists/$',
15 views.lists_user,
16 name='lists-user'),
18 url(r'^user/(?P<username>[\w.+-]+)/list/(?P<slug>[\w-]+)$',
19 views.list_show,
20 name='list-show'),
22 url(r'^user/(?P<username>[\w.+-]+)/list/(?P<slug>[\w-]+)\.opml$',
23 views.list_opml,
24 name='list-opml'),
26 url(r'^user/(?P<username>[\w.+-]+)/list/(?P<slug>[\w-]+)/search$',
27 views.search,
28 name='list-search'),
30 url(r'^user/(?P<username>[\w.+-]+)/list/(?P<slug>[\w-]+)/add/(?P<podcast_id>\w+)$',
31 views.add_podcast,
32 name='list-add-podcast'),
34 url(r'^user/(?P<username>[\w.+-]+)/list/(?P<slug>[\w-]+)/remove/(?P<order>\d+)$',
35 views.remove_podcast,
36 name='list-remove-podcast'),
38 url(r'^user/(?P<username>[\w.+-]+)/list/(?P<slug>[\w-]+)/delete$',
39 views.delete_list,
40 name='list-delete'),
42 url(r'^user/(?P<username>[\w.+-]+)/list/(?P<slug>[\w-]+)/rate$',
43 views.rate_list,
44 name='list-rate'),