Bem vindo!

ao blog Willem Allan

Dev

Instalando o django-pagination

Primeiro passo instalar o django-pagination no env pip install django-pagination Configure o setings adicionando as linhas abaixo MIDDLEWARE_CLASSES e INSTALLED_APPS: MIDDLEWARE_CLASSES = ( ‘pagination.middleware.PaginationMiddleware’, )   INSTALLED_APPS = ( ‘pagination’, ) view 1 2 3 4 5 6 7 8 9 10 11 12 # coding: utf-8 from models import *   def artigos(request):   artigos = Artigo.objects.all()   VARS…