Re: Does setting a session cause a redirect?

2007-10-03 Thread Rob Hudson

After the few responses here and Malcolm telling me I was on drugs
(grin) I dug deeper and found the problem...

On my list result page I had a model method returning an empty string
for a URL to a related image which resulted in the following HTML:



That cause an extra GET request to the same page.  I fixed the model
method and all is good.

Thanks to all,
Rob

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: Does setting a session cause a redirect?

2007-10-03 Thread Richard Dahl
I can't see why that would cause a redirect, it is hard to diagnose a
problem without seeing the code or the server logs.  Is the get request for
the same URL?

On 10/3/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
>
> I'm working on an advanced search feature for a website and am using
> request.session to store the search terms so pagination will remember
> and paginate correctly.  While working with the built-in server I'm
> seeing that my search submit come through as a POST then almost
> immediately after I see another GET request.  I suspect that this code
> is causing the redirect...
>
> request.session['mykey'] = mydict
>
> Does that seem right that it would redirect?
>
> Thanks,
> Rob
>
>
> >
>

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: Does setting a session cause a redirect?

2007-10-03 Thread Joe

Can you post the command line output?

On Oct 3, 11:45 am, Rob Hudson <[EMAIL PROTECTED]> wrote:
> I'm working on an advanced search feature for a website and am using
> request.session to store the search terms so pagination will remember
> and paginate correctly.  While working with the built-in server I'm
> seeing that my search submit come through as a POST then almost
> immediately after I see another GET request.  I suspect that this code
> is causing the redirect...
>
> request.session['mykey'] = mydict
>
> Does that seem right that it would redirect?
>
> Thanks,
> Rob


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Does setting a session cause a redirect?

2007-10-03 Thread Rob Hudson

I'm working on an advanced search feature for a website and am using
request.session to store the search terms so pagination will remember
and paginate correctly.  While working with the built-in server I'm
seeing that my search submit come through as a POST then almost
immediately after I see another GET request.  I suspect that this code
is causing the redirect...

request.session['mykey'] = mydict

Does that seem right that it would redirect?

Thanks,
Rob


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---