Commit Graph

7 Commits

Author SHA1 Message Date
Jelle van der Waa
6c6b4541b5 Update urls.py to non relative imports 2018-04-08 12:51:19 +02:00
Johannes Löthberg
996ef6ec72 Change urls.py from patterns to list of url()
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08 12:51:19 +02:00
Dan McGee
5ec5b1a702 Break out mirrorlist views
Signed-off-by: Dan McGee <dan@archlinux.org>
2015-02-26 19:37:23 -06:00
Dan McGee
64a92174c0 Begin removal of FTP mirror support
FTP is a terrible protocol these days compared to HTTP. IPv6 support is
spotty at best, it is much slower for the connect/begin transfer cycle,
and overall just doesn't provide anything HTTP does better. Start
killing bits that we've added to treat FTP as a first-class protocol and
regulate it to the back seat.

The expectation here is once this commit goes live to the production
site, the FTP mirror URLs themselves will get removed completely from
the database, and the FTP protocol object itself will get deleted.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-05-21 20:24:55 -05:00
Dan McGee
d2d0895f13 Allow mirrorlist generator pattern to match any protocol
Add a helper method that checks if we know about the protocol; if so, we
can spit out a URL for it. This allows (if you are insane) generation of
an rsync mirrorlist, for instance.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-02 12:23:21 -05:00
Dan McGee
b8c20439c0 Change Django urls.py import
Until Django 1.3, the functions include(), patterns() and url() plus
handler404, handler500 were located in a django.conf.urls.defaults
module.

In Django 1.4, they live in django.conf.urls.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 19:54:40 -05:00
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