[Answer]-Django pagination url parameters

1👍

You should do something like this:

url(r'^clues/$')
def clues(request):
    if request.method == 'GET':
        page = request.GET.get('page')
...

all GET info passed after ‘?’ like your page ‘?page=n’ stored in request.GET dictionary

0👍

My url was bad. I found the docs to be a bit confusing. My url needs to be just

url(r'^clues/$', views.ClueIndexView.as_view()

Works now.

👤Scott

Leave a comment