Skip to content

Commit

Permalink
Merge pull request googleapis#121 from ZIXANLABS/master
Browse files Browse the repository at this point in the history
Upgrade django sample project to use render function.
  • Loading branch information
nathanielmanistaatgoogle committed Aug 13, 2015
2 parents acb3247 + f69f830 commit b105fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/django_sample/plus/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.http import HttpResponse
from django.http import HttpResponseBadRequest
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.shortcuts import render
from django_sample.plus.models import CredentialsModel
from django_sample import settings
from oauth2client import xsrfutil
Expand Down Expand Up @@ -45,7 +45,7 @@ def index(request):
userId='me').execute()
logging.info(activitylist)

return render_to_response('plus/welcome.html', {
return render(request, 'plus/welcome.html', {
'activitylist': activitylist,
})

Expand Down

0 comments on commit b105fbe

Please sign in to comment.