Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4077826
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:35:56+00:00 2026-05-20T17:35:56+00:00

To use flickr as an example, a request URL looks something like this: ‘http://api.flickr.com/services/rest/?&method=flickr.people.getPublicPhotos&api_key=’

  • 0

To use flickr as an example, a request URL looks something like this:

'http://api.flickr.com/services/rest/?&method=flickr.people.getPublicPhotos&api_key=' + settings.FLICKR_API_KEY + '&user_id=' + userid + '&format=json&per_page' + per_page + '&page=' + page + '&nojsoncallback=1'

where page controls which page to display and per_page controls the number of photos to return

To simplify matters, let’s make per_page fixed. So my question is, how can I implement a paging system that allows a user to go one page forwards or back at anytime on the webpage?

I imagine I would need to pass the page number to iterate through the request URL such that the right data is displayed. SO I guess I’m not sure how to tie the template to the views.py. Essentially, I’m looking for the Django version of this Rails question.

The examples and plugins I have come across so far (e.g. django-pagination) mainly deal with pagination resulting from a database query.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T17:35:57+00:00Added an answer on May 20, 2026 at 5:35 pm

    Django-pagination will work with any list of objects — not just calls from the database. The example here actually starts off with an example that has nothing to do with local models or databases.

    For an API-type call, you’d just need to read your objects into a list, and then create a new Paginator objects based off of that list. All you have to do is give it the number of objects you want per page. It’s really very simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The jQuery documentation lists the following example of using $.getJSON to request JSONP: $.getJSON(http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?,
I'm using the flikr badge code (http://www.flickr.com/badge_code_v2.gne) like so <!-- Start of Flickr Badge
In my rails application I use some external web services: twitter, google picasa, flickr
here is the site : http://www.notrepanorama.com at the bottom left, i use a jquery
I know this seems like I should have immediately found the one example out
I want to do something like this: .even { float: left; text-align: left; }
For photos, I use Flickr. But for other documents...Which web based online application (hosted
Use case: A does something on his box and gots stuck. He asks B
I'm playing with the flickr api and php. I want to pass some information
Im building my first app in rails and I would like to call Flickr's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.