evorepo/mirrors/urls_mirrorlist.py
Dan McGee b9fdcd0622 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>
2011-02-22 15:29:10 -06:00

13 lines
423 B
Python

from django.conf.urls.defaults import patterns
urlpatterns = patterns('mirrors.views',
(r'^$', 'generate_mirrorlist', {}, 'mirrorlist'),
(r'^all/$', 'find_mirrors', {'countries': ['all']}),
(r'^all/ftp/$', 'find_mirrors',
{'countries': ['all'], 'protocols': ['ftp']}),
(r'^all/http/$', 'find_mirrors',
{'countries': ['all'], 'protocols': ['http']}),
)
# vim: set ts=4 sw=4 et: