Skip to content

Instantly share code, notes, and snippets.

View oisobstudio's full-sized avatar

Oisob Studio oisobstudio

View GitHub Profile
@oisobstudio
oisobstudio / part.md
Last active April 1, 2023 18:53
Django Pagination Server-Side Menggunakan DataTable

myapp/views.py

import json

from django.views.generic import View
from django.http import HttpResponse
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.db.models import Q
from django.core.serializers.json import DjangoJSONEncoder