diff options
author | Dan McGee <dan@archlinux.org> | 2009-09-15 20:13:11 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-09-15 20:14:06 -0500 |
commit | 9dc89e8287d9f34da140d0494005388b7abc14c2 (patch) | |
tree | 63096ac2ac13802545a84f426e9341dd2cb7fc98 /devel/views.py | |
parent | e3ea5232732f442f75a372714b64e1c119c1be7c (diff) |
Add a basic mirror view for the dev site
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
-rw-r--r-- | devel/views.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/devel/views.py b/devel/views.py index f9aacec2..402ed26c 100644 --- a/devel/views.py +++ b/devel/views.py @@ -7,6 +7,7 @@ from django.core.mail import send_mail from archweb_dev.main.models import Package, Todolist from archweb_dev.main.models import Arch, Repo from archweb_dev.main.models import UserProfile, News +from archweb_dev.main.models import Mirror import random from string import ascii_letters, digits pwletters = ascii_letters + digits @@ -73,6 +74,11 @@ def siteindex(request): RequestContext(request, {'news_updates': news, 'pkg_updates': pkgs, 'repos': repos})) +def mirrorlist(request): + mirrors = Mirror.objects.all() + return render_to_response('devel/mirrorlist.html', + RequestContext(request, {'mirror_list': mirrors})) + class NewUserForm(forms.ModelForm): class Meta: model = UserProfile |