Skip to content

Commit b41fcae

Browse files
authored
update views.py to use django shortcuts render()
was getting an error from the view.py when rendering "unexpected keyword context_instance" - resolved it by replacing deprecated render_to_response() with render()
1 parent 4e5c6e9 commit b41fcae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/simplecms/views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ def page_detail(request, path):
1313
except Page.DoesNotExist:
1414
raise Http404("No page found for the path '%s'" % stripped)
1515

16-
return render_to_response(page.template_name, {
16+
return render(request, page.template_name, {
1717
'simplecms_page': page,
18-
}, context_instance=RequestContext(request))
18+
})

0 commit comments

Comments
 (0)