2020-11-21 02:49:07 -03:00
|
|
|
from django.shortcuts import render
|
2020-11-21 04:37:32 -03:00
|
|
|
from blog.models import Entrada
|
2020-11-21 02:49:07 -03:00
|
|
|
# Create your views here.
|
2020-11-21 04:07:02 -03:00
|
|
|
|
|
|
|
def blog(request):
|
2020-11-21 04:37:32 -03:00
|
|
|
entradas = Entrada.objects.all()
|
|
|
|
return render(request, "blog/blog.html", {"entradas":entradas})
|
|
|
|
|
|
|
|
|