diff --git a/ietf/dbtemplate/templates/dbtemplate/template_edit.html b/ietf/dbtemplate/templates/dbtemplate/template_edit.html
index fb4da59a1..267130bff 100644
--- a/ietf/dbtemplate/templates/dbtemplate/template_edit.html
+++ b/ietf/dbtemplate/templates/dbtemplate/template_edit.html
@@ -1,4 +1,6 @@
-{% extends "base.html" %}
+{% extends "ietf.html" %}
+
+{% load bootstrap3 %}
{% block content %}
Template: {{ template }}
@@ -12,15 +14,15 @@
Template type
{{ template.type.name }}
{% if template.type.slug == "rst" %}
- This template uses the syntax of reStructuredText. Get a quick reference at http://docutils.sourceforge.net/docs/user/rst/quickref.html.
- You can do variable interpolation with $varialbe if the template allows any variable.
+ This template uses the syntax of reStructuredText. Get a quick reference at http://docutils.sourceforge.net/docs/user/rst/quickref.html.
+ You can do variable interpolation with $varialbe if the template allows any variable.
{% endif %}
{% if template.type.slug == "django" %}
- This template uses the syntax of the default django template framework. Get more info at https://docs.djangoproject.com/en/dev/topics/templates/.
- You can do variable interpolation with the current django markup {{variable}} if the template allows any variable.
+ This template uses the syntax of the default django template framework. Get more info at https://docs.djangoproject.com/en/dev/topics/templates/.
+ You can do variable interpolation with the current django markup {{variable}} if the template allows any variable.
{% endif %}
{% if template.type.slug == "plain" %}
- This template uses plain text, so no markup is used. You can do variable interpolation with $variable if the template allows any variable.
+ This template uses plain text, so no markup is used. You can do variable interpolation with $variable if the template allows any variable.
{% endif %}
{% if template.variables %}
@@ -30,8 +32,13 @@
Edit template content
-
{% endblock content %}
diff --git a/ietf/dbtemplate/templates/dbtemplate/template_list.html b/ietf/dbtemplate/templates/dbtemplate/template_list.html
index dd2036bc6..8beb06c7b 100644
--- a/ietf/dbtemplate/templates/dbtemplate/template_list.html
+++ b/ietf/dbtemplate/templates/dbtemplate/template_list.html
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends "ietf.html" %}
{% block content %}
Defined templates for group {{ group }}
@@ -6,7 +6,7 @@
{% if template_list %}
{% else %}
diff --git a/ietf/dbtemplate/views.py b/ietf/dbtemplate/views.py
index 95529c378..6986fffdc 100644
--- a/ietf/dbtemplate/views.py
+++ b/ietf/dbtemplate/views.py
@@ -1,6 +1,5 @@
from django.http import HttpResponseForbidden, HttpResponseRedirect
-from django.shortcuts import get_object_or_404, render_to_response
-from django.template import RequestContext
+from django.shortcuts import get_object_or_404, render
from ietf.dbtemplate.models import DBTemplate
from ietf.dbtemplate.forms import DBTemplateForm
@@ -15,10 +14,10 @@ def template_list(request, acronym):
return HttpResponseForbidden("You are not authorized to access this view")
template_list = DBTemplate.objects.filter(group=group)
- return render_to_response('dbtemplate/template_list.html',
+ return render(request, 'dbtemplate/template_list.html',
{'template_list': template_list,
'group': group,
- }, RequestContext(request))
+ })
def template_edit(request, acronym, template_id, base_template='dbtemplate/template_edit.html', formclass=DBTemplateForm, extra_context=None):
@@ -43,4 +42,4 @@ def template_edit(request, acronym, template_id, base_template='dbtemplate/templ
'form': form,
}
context.update(extra_context)
- return render_to_response(base_template, context, RequestContext(request))
+ return render(request, base_template, context)