Actually, I think it is coming from a different spot.  Here's the full
method:

     24 def get_user_id(request):
     25     user_id = request.session.get('user_id')
     26     if user_id:
     27         return request.session['user_id']
     28     else:
     29         return HttpResponseRedirect('/login/')

If I raise my own exception between 28 & 29 I get the exception instead
of the one shown above.  Is this happening in HttpResponseRedirect()?

/login/ renders fine if I request it directly in a browser.

Thanks!


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to