demo-HTML-over-WebSockets-i.../apps/front/views.py
Andros Fenollosa 039778e9a9 Add paginator
2021-03-12 21:16:23 +01:00

11 lines
279 B
Python

from django.shortcuts import render
from apps.back.models import Post
import uuid
def all_articles(request):
return render(request, 'layouts/main.html', {
"CHANNEL": uuid.uuid4().hex[:20].upper(),
"posts": Post.objects.all()[:3],
"pag": 1
})