Source

djangobook-cn / common / appenginepatch / ragendja / auth / context_processors.py

Full commit
1
2
3
4
5
# -*- coding: utf-8 -*-
from google.appengine.api import users

def google_user(request):
    return {'google_user': users.get_current_user()}