Fixing render_to_response deprecated in Django 3

Description

Fixing RemovedInDjango30Warnings

*Background:* The `django.shortcuts` method `render_to_response` became deprecated in [Django 1.3](https://docs.djangoproject.com/en/3.0/releases/1.3/), when `render` was introduced.

Per the documentation:

> render() is the same as a call to render_to_response() with a context_instance argument that forces the use of a RequestContext.

Both return an `HttpResponse` object.

*Context:* We changed two statements: An import line and the call to the method, adding explicit parameter names to improve readability.

*Before:*
```
from django.shortcuts import get_object_or_404, render_to_response
...
return render_to_response("teams/teams.html", context)

```

*After*
```
from django.shortcuts import get_object_or_404, render
...
return render(
request=request,
template_name="teams/teams.html",
context=context
)

```

@felipemontoya

Assignee

Unassigned

Reporter

Open Source Pull Request Bot

Labels

Contributor Name

Daniel Francis

Repo

edx/edx-platform

Customer

Epic Link

None

OSCM Assignee

None

Platform Map Area (Levels 1 & 2)

Developer Experiences

Platform Map Area (Levels 3 & 4)

None

Blended Hour Utilization Percentage

None

Priority

Unset
Configure