diff options
Diffstat (limited to 'djangopypi/urls/channel.py')
-rw-r--r-- | djangopypi/urls/channel.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/djangopypi/urls/channel.py b/djangopypi/urls/channel.py new file mode 100644 index 0000000..2bb19a8 --- /dev/null +++ b/djangopypi/urls/channel.py | |||
@@ -0,0 +1,12 @@ | |||
1 | # -*- coding: utf-8 -*- | ||
2 | from django.conf.urls.defaults import patterns | ||
3 | |||
4 | urlpatterns = patterns('djangopypi.views.channel', | ||
5 | (r'^$', 'list_channels', {}, 'djangopypi-channel_simple'), | ||
6 | |||
7 | (r'^(?P<channel>[\w\d_\.\-]+)/$', | ||
8 | 'show_channel', {}, 'djangopypi-channel_show_dists'), | ||
9 | |||
10 | (r'^(?P<channel>[\w\d_\.\-]+)/(?P<dist_name>[\w\d_\.\-]+)/$', | ||
11 | 'show_links', {}, 'djangopypi-channel_show_links'), | ||
12 | ) | ||