Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.604 kb
from django.conf import settings
def add_settings(request):
return { "FACEBOOK_APP_ID": settings.FACEBOOK_APP_ID,
"BASE_URL": settings.BASE_URL,
"KM_CODE": settings.KM_CODE,
"FACEBOOK_CANVAS_PAGE": settings.FACEBOOK_CANVAS_PAGE }
def add_fbuid(request):
if hasattr(request, "facebook") and request.facebook is not None:
return { "my_uid": request.facebook["uid"] }
else:
return {}
def add_source(request):
if request.GET.get("source", False):
return { "traffic_source": request.GET["source"] }
else:
return {}
Jump to Line
Something went wrong with that request. Please try again.