Hi all,

I have a Facebook application using Django. In one of my views I use
following piece of code to make user logged-in.

In IE, return HttpResponseRedirect line fails with error message "This
content cannot be displayed in a frame...", although other browsers
are working fine.

Do you have an idea, why IE fails for HttpResponseRedirect?



(This is problem is produced on IE9 on Windows 7, server is using
django-1.3, here is the code)
def auto_login(request):
    username = request.GET['username']
    password = request.GET['password']
    user = authenticate(username=username, password=password)
    if user is not None:
            if user.is_active:
        login(request, user)
        theURL='http://apps.facebook.com/myapp/'
        return HttpResponseRedirect(theURL)
            else:
            return HttpResponse("disabled account")
    else:
        return HttpResponse("Invalid login")

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to