Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/d/5/d51.django.auth-HEAD/d51/django/auth/facebook/context_processors.py   d51.django.auth(Download)
from django.conf import settings
from django.contrib.auth import BACKEND_SESSION_KEY
from .backends import FACEBOOK_CONNECT_BACKEND_STRING 
 
def api_key(request):
    return {'FACEBOOK_API_KEY': getattr(settings, 'FACEBOOK_API_KEY', None),}
 
def facebook(request):
    facebook = getattr(request, 'facebook', None)
    is_logged_in = request.session.get(BACKEND_SESSION_KEY, None) == FACEBOOK_CONNECT_BACKEND_STRING