Hi everyone,

I am using django-endless-pagination to paginate YouTube API results. I
have a view called 'search' and a url pattern as follows:
url(r'^search/$', 'find_music.views.search', name='search'),

In the view, I check request.method and handle it as follows:
- if POST, get search term and fetch youtube api results as list, which i
paginate in template
- if GET (user clicks pagination, url e.g. '/search/?page=2'), i look for
request.GET['page'] , which I would like to use to paginate my video list
created in the POST.

Question is, how best can i keep my video list from the POST method across
requests, so that i can paginate the same list? I have no search params
when users paginate, so I need to keep the original list and paginate that.
Any ideas?

Thank you.

-- 
Regards,
Sithu Lloyd Dube

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to