
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Simple and Easiest paginator for Django.
pip install django-leafage
Add "leafage" to your INSTALLED_APPS in settings.py like this::
INSTALLED_APPS = [
...
'leafage',
...
]
Ensure "APP_DIRS" to "True" in settings.py like this::
TEMPLATES = [
{
...
'DIRS': [],
'APP_DIRS': True,
...
},
]
In views import leafage
like this::
import leafage
def home(request):
"""
Home page handler.
"""
template = 'home.html'
per_page_obj = 10 # default = 10(if not provided)
queryset = Model.objects.all()
queryset = leafage.pagination(request=request, obj_list=queryset, obj_count=per_page_obj)
context = {
'queryset': queryset
}
return render(request, template, context)
At beginning of template include following code and template look like this::
{% load leafage %}
End of template add following code look like this::
{% paginate request=request object_list=queryset %}
Copyright (c) 2020 Nilesh Kumar Dubey
This repository is licensed under the MIT license. See LICENSE for details
FAQs
Simple and Easiest paginator for Django.
We found that django-leafage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.