On Apr 3, 7:10 pm, Forest Bond <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 03, 2007 at 03:46:04PM -0700, TaMeR wrote:
> > This used to work and I must have done something to break the code.
> > The simple page view still works fine but the list view gives me this
> > error and I been through my code a million times and can't find
> > anything wrong with it.
>
> The way your view is written, if the user is not authenticated, no 
> HttpResponse
> is returned (since no return statement is executed).  You probably want to 
> just
> raise Http404 in that case.
>
> -Forest
>
>  signature.asc
> 1KDownload

I am not sure what you mean
I have a HttpResponseRedirect if the user is not authenticated.
This error happens with an authenticated user.
If the user is not authenticated he/she gets redirected to the login
page and that works fine.
See:
    if not request.user.is_authenticated():
        return HttpResponseRedirect('/account/login/?next=%s' %
request.path)


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

Reply via email to