summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-01-03 14:37:43 -0500
committereliott <eliott@cactuswax.net>2008-01-03 14:37:43 -0500
commitec3c9631e438047c3f66e1af618d4f93b4b6d1cb (patch)
tree62ad6ac9876a6286b77bcd95eca25441afd72a5a /devel
parent576e9934b44bac6bf49d9a2e60d8a29a59eef296 (diff)
Fixed a bug with pkgmaint page
Diffstat (limited to 'devel')
-rw-r--r--devel/views.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/devel/views.py b/devel/views.py
index 5115b480..d61fde51 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -11,6 +11,8 @@ from archweb_dev.devel.models import UserProfile
from archweb_dev.news.models import News
from archweb_dev.settings import DATA_DIR
from archweb_dev.devel.models import Donator, Mirror
+from django.http import HttpResponse
+from django.template import Context, loader
@login_required
@@ -79,8 +81,11 @@ def change_profile(request):
@login_required
def guide(request):
- return render_response(request, 'devel/pkgmaint_guide.txt',
- mimetype='text/plain')
+ t = loader.get_template('devel/pkgmaint_guide.txt')
+ c = Context()
+ return HttpResponse(t.render(c), mimetype="text/plain")
+ #return render_response(request, 'devel/pkgmaint_guide.txt',
+ # mimetype='text/plain')
def siteindex(request):
# get the most recent 10 news items