Can anyone tell me why in the following code I get redirected to yahoo.com instead of google.com?
urls
urlpatterns = patterns('', (r'^$', initialRequest,))
view
def initialRequest(request):
if request.user.is_authenticated:
return HttpResponseRedirect('http://yahoo.com')
else:
return HttpResponseRedirect('http://google.com')
is_authenticatedattribute, itself, has a value, and it does: a method. - Chris Pratt