EarthSystemCoG / COG

COG source code
BSD 3-Clause "New" or "Revised" License
8 stars 16 forks source link

TypeError: render_to_response() got an unexpected keyword argument 'context_instance' #1340

Closed LucaCinquini closed 7 years ago

LucaCinquini commented 7 years ago

Who: Luca

After upgrading to django 1.10.3, the web site won't start with this error:

TypeError: render_to_response() got an unexpected keyword argument 'context_instance'

LucaCinquini commented 7 years ago

All of the views must be changed as follows. Instead of: return render_to_response(page.template, dict, context_instance=RequestContext(request)) must have this instead: return render(request, page.template, dict)

LucaCinquini commented 7 years ago

There were 111 instances of this - this will require a thorough test of all functionality throughout the site....

LucaCinquini commented 7 years ago

CoG with Django 1.10.3 not crashing any more at startup.