To change ?page=1
to ?side=1
you can add the page_kwarg
attribute to your class.
class EntryListView(ListView):
context_object_name = "news_list"
paginate_by = 18
queryset = Entry.published.all().order_by('-start_publication')
page_kwarg = 'side'
There is no reason that that /side/1/
would not match your URL pattern without overriding the page_kwarg
, maybe you missed the trailing slash while testing?