intro_Django/ProyectoWeb/servicios/views.py

9 lines
245 B
Python
Raw Normal View History

from django.shortcuts import render
2020-11-20 20:52:22 -03:00
from servicios.models import Servicio
# Create your views here.
2020-11-20 20:52:22 -03:00
def servicios(request):
servicios = Servicio.objects.all()
return render(request, "servicios/servicios.html", {"servicios":servicios})