diff options
author | Mike Crute <mcrute@gmail.com> | 2010-05-27 01:14:08 -0400 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2010-05-27 01:14:08 -0400 |
commit | 5a68ee32fe6ec7a381a16245f85fde210500dfd7 (patch) | |
tree | 8bdac814a7ff66f0c3aa297a6d3c1f3df191d4db /djangopypi/urls/channel.py | |
parent | 93481083e6fa15490584e61a3f6a5638024f9b31 (diff) | |
download | chishop-5a68ee32fe6ec7a381a16245f85fde210500dfd7.tar.bz2 chishop-5a68ee32fe6ec7a381a16245f85fde210500dfd7.tar.xz chishop-5a68ee32fe6ec7a381a16245f85fde210500dfd7.zip |
Adding channel support
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 | ) | ||