Skip to content

Instantly share code, notes, and snippets.

View h4rm41n's full-sized avatar
🎯
Focusing

Ahmad Harmain h4rm41n

🎯
Focusing
View GitHub Profile
@h4rm41n
h4rm41n / part.md
Created September 11, 2018 20:19 — forked from oisobstudio/part.md
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