Browse Source

web/postkey/views.py: pass "title" to renderer

pull/1/head
Hidden Z 14 years ago
parent
commit
e44be42738
  1. 3
      web/postkey/views.py

3
web/postkey/views.py

@ -4,6 +4,7 @@ from django import forms
from django.forms import ModelForm from django.forms import ModelForm
from django.template import RequestContext from django.template import RequestContext
from web import settings
from web.postkey.models import i2phost from web.postkey.models import i2phost
from web.lib.validation import validate_hostname from web.lib.validation import validate_hostname
from web.lib.validation import validate_b64hash from web.lib.validation import validate_b64hash
@ -42,10 +43,12 @@ def addkey(request):
else: else:
form = AddForm() form = AddForm()
return render_to_response('postkey.html', { return render_to_response('postkey.html', {
'title': settings.SITE_NAME,
'form': form, 'form': form,
}, context_instance=RequestContext(request)) }, context_instance=RequestContext(request))
def success(request): def success(request):
return render_to_response('success_submission.html', { return render_to_response('success_submission.html', {
'title': settings.SITE_NAME,
'hostname': request.session['hostname'], 'hostname': request.session['hostname'],
}) })

Loading…
Cancel
Save