diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-22 22:29:08 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-22 22:29:10 +0100 |
commit | b9fdcd06222c674d5fabcf5a4ab6bc55f268c757 (patch) | |
tree | 25a831e55a792b452526cfd035486230ff0b9102 /packages | |
parent | 330048eab6cf9bacf2d7bb436a101a3b7469aca7 (diff) | |
download | archweb-b9fdcd06222c674d5fabcf5a4ab6bc55f268c757.tar.gz archweb-b9fdcd06222c674d5fabcf5a4ab6bc55f268c757.tar.xz |
Modularize URLs
Make some additional URL config files that can be included so we aren't
trying to do so much in the top level config. This also allows us to
branch a bit more rather than go linear down the rather lengthy list.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/urls_groups.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/urls_groups.py b/packages/urls_groups.py new file mode 100644 index 0000000..c561e50 --- /dev/null +++ b/packages/urls_groups.py @@ -0,0 +1,9 @@ +from django.conf.urls.defaults import patterns + +urlpatterns = patterns('packages.views', + (r'^$', 'groups', {}, 'groups-list'), + (r'^(?P<arch>[A-z0-9]+)/$', 'groups'), + (r'^(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/$', 'group_details'), +) + +# vim: set ts=4 sw=4 et: |