summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/views.py9
-rw-r--r--settings.py3
-rw-r--r--urls.py1
3 files changed, 3 insertions, 10 deletions
diff --git a/devel/views.py b/devel/views.py
index e0e25e17..2b78e533 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -65,12 +65,9 @@ def siteindex(request):
pkgs = Package.objects.exclude(repo__name__iexact='testing').order_by(
'-last_update')[:15]
repos = Repo.objects.all()
- return render_response(
- request, 'devel/siteindex.html',
- {'news_updates': news, 'pkg_updates': pkgs, 'repos': repos})
-
-def denied(request):
- return render_response(request, 'devel/denied.html')
+ return render_to_response('devel/siteindex.html',
+ RequestContext(request,
+ {'news_updates': news, 'pkg_updates': pkgs, 'repos': repos}))
# vim: set ts=4 sw=4 et:
diff --git a/settings.py b/settings.py
index 082bf43e..c9d431da 100644
--- a/settings.py
+++ b/settings.py
@@ -34,9 +34,6 @@ SITE_ID = 1
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/admin_media/'
-# URL to send users when they don't have sufficient privileges
-BADPRIVS_URL = '/denied/'
-
# login url
LOGIN_URL = '/login/'
diff --git a/urls.py b/urls.py
index 6cff8c35..cdb64cf0 100644
--- a/urls.py
+++ b/urls.py
@@ -47,7 +47,6 @@ urlpatterns = patterns('',
(r'^$', 'archweb_dev.devel.views.siteindex'),
# Authentication / Admin
- (r'^denied/$', 'archweb_dev.devel.views.denied'),
(r'^login/$', 'django.contrib.auth.views.login', {
'template_name': 'registration/login.html'}),
(r'^accounts/login/$', 'django.contrib.auth.views.login', {