Commit ec3c9631 authored by eliott's avatar eliott
Browse files

Fixed a bug with pkgmaint page

parent 576e9934
......@@ -11,6 +11,8 @@
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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment