diff options
author | eliott <eliott@cactuswax.net> | 2008-01-03 20:37:43 +0100 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2008-01-03 20:37:43 +0100 |
commit | ec3c9631e438047c3f66e1af618d4f93b4b6d1cb (patch) | |
tree | 62ad6ac9876a6286b77bcd95eca25441afd72a5a | |
parent | 576e9934b44bac6bf49d9a2e60d8a29a59eef296 (diff) | |
download | archweb-ec3c9631e438047c3f66e1af618d4f93b4b6d1cb.tar.gz archweb-ec3c9631e438047c3f66e1af618d4f93b4b6d1cb.tar.xz |
Fixed a bug with pkgmaint page
-rw-r--r-- | devel/views.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/devel/views.py b/devel/views.py index 5115b48..d61fde5 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 |