On Monday, March 21, 2011 4:49:34 AM UTC, Andrew Godfrey wrote:
>
> Hi, 
>
> I am paginating the output of a query. Everything works fine and the 
> first page of results is displayed. The problem is that the url to 
> access pages 2 (http://127.0.0.1:8000/search/?page=2) and following 
> fall back to the search form and do not display the second page of 
> results. 
>

Yes, because you are using POST for the search query, and subsequent 
requests are GETs.

So, don't do that. Search forms are a case where GET is the right method to 
use: they don't update anything on the server, they simply request 
information. You should include the search query on every pagination link.
--
DR.

-- 
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