Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df43dbf commit f69f830Copy full SHA for f69f830
samples/django_sample/plus/views.py
@@ -8,7 +8,7 @@
8
from django.http import HttpResponse
9
from django.http import HttpResponseBadRequest
10
from django.http import HttpResponseRedirect
11
-from django.shortcuts import render_to_response
+from django.shortcuts import render
12
from django_sample.plus.models import CredentialsModel
13
from django_sample import settings
14
from oauth2client import xsrfutil
@@ -45,7 +45,7 @@ def index(request):
45
userId='me').execute()
46
logging.info(activitylist)
47
48
- return render_to_response('plus/welcome.html', {
+ return render(request, 'plus/welcome.html', {
49
'activitylist': activitylist,
50
})
51
0 commit comments