diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-10-07 11:02:58 -0400 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-10-07 11:02:58 -0400 |
commit | a2c25fa12adb28eec511286941c1d3e8a88f56ee (patch) | |
tree | faf0285037f05d0ec6c3d4ac11ce651bf8621a96 | |
parent | 95401a1b9d530ff226f4b86a3a5f344bf1130202 (diff) |
drop a bunch of static stuff necessary only in archweb_pub
-rw-r--r-- | devel/views.py | 28 | ||||
-rw-r--r-- | urls.py | 7 |
2 files changed, 0 insertions, 35 deletions
diff --git a/devel/views.py b/devel/views.py index 95c90f3f..df37e260 100644 --- a/devel/views.py +++ b/devel/views.py @@ -97,34 +97,6 @@ def siteindex(request): request, 'devel/siteindex.html', {'news_updates': news, 'pkg_updates': pkgs, 'repos': repos}) -def developers(request): - devs = User.objects.filter(is_active=True).order_by('username') - return render_response(request, 'devel/developers.html', {'devs':devs}) - -def fellows(request): - fellows = User.objects.filter(is_active=False).order_by('username') - return render_response(request, 'devel/fellows.html', {'fellows':fellows}) - -def donate(request): - donor_count = Donor.objects.count() - splitval = donor_count / 4 - slice1 = Donor.objects.all()[:splitval] - slice2 = Donor.objects.all()[(splitval):(splitval*2)] - slice3 = Donor.objects.all()[(splitval*2):(donor_count-splitval)] - slice4 = Donor.objects.all()[(donor_count-splitval):donor_count] - return render_response(request, 'devel/donate.html', - {'slice1':slice1,'slice2':slice2,'slice3':slice3,'slice4':slice4}) - -def download(request): - mirrors = Mirror.objects.order_by('country', 'domain') - return render_response(request, 'devel/download.html', {'mirrors':mirrors}) - -def projects(request): - return render_response(request, 'devel/projects.html') - -def robots(request): - return HttpResponse("User-agent: *\nDisallow: /\n", mimetype="text/plain") - def denied(request): return render_response(request, 'devel/denied.html') @@ -51,13 +51,6 @@ urlpatterns = patterns('', # (mostly) Static Pages (r'^$', 'archweb_dev.devel.views.siteindex'), - (r'^cvs/$', 'archweb_dev.devel.views.cvs'), - (r'^developers/$', 'archweb_dev.devel.views.developers'), - (r'^fellows/$', 'archweb_dev.devel.views.fellows'), - (r'^donate/$', 'archweb_dev.devel.views.donate'), - (r'^download/$', 'archweb_dev.devel.views.download'), - (r'^projects/$', 'archweb_dev.devel.views.projects'), - (r'^robots.txt$', 'archweb_dev.devel.views.robots'), # Authentication / Admin (r'^denied/$', 'archweb_dev.devel.views.denied'), |