-from forum.models import AuthKeyUserAssociation\r
-from django.http import HttpResponse\r
-\r
-def user_is_registered(request):\r
- try:\r
- fb_uid = request.POST['fb_uid']\r
- print fb_uid\r
- AuthKeyUserAssociation.objects.get(key=fb_uid)\r
- return HttpResponse('yes')\r
- except:\r
+from forum.models import AuthKeyUserAssociation
+from django.http import HttpResponse
+
+def user_is_registered(request):
+ try:
+ fb_uid = request.POST['fb_uid']
+ #print fb_uid
+ AuthKeyUserAssociation.objects.get(key=fb_uid)
+ return HttpResponse('yes')
+ except:
return HttpResponse('no')
\ No newline at end of file